Skip to main content

.dat file is ...? 99 Responses

Last post: 5 months ago | Thread started: Jun 30, 08, 3:26 a.m.

RespondNew TopicDisable Images

  • Dancer

    before I start: I am not that experienced with PHP and server side management.

    I have been asked to set up a page that has a newsletter sign up form.

    This will literally be a single input field and a submit button.

    The one I am using: http://francisbooth.com/design/w…

    I have gone to change the code so it works for me but am stumped when I need to change:
    'emailSignup.dat'; // file to write to

    Should this be a database name? Table name?

    Any help would be great, or a link to a simple sign up form.

    Thanks

    Jun 30, 08, 3:26 a.m. – Permalink
  • Fariska

    Not sure, but .dat files are pretty generic ones: they can be videos
    or just data (of almost all kind) storage files.

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earJun 30, 08, 4:07 a.m. – Permalink
  • Dancer

    So a text file or something?

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earJun 30, 08, 4:10 a.m. – Permalink
  • Fariska

    Kind of:
    http://filext.com/file-extension…

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earJun 30, 08, 4:12 a.m. – Permalink
  • neave

    It's data. Very important data you shouldn't be messin' with.

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earJun 30, 08, 5:10 a.m. – Permalink
  • Mojo

    .dat could be anything.It's not 'owned' by any particularly company.

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earJun 30, 08, 5:24 a.m. – Permalink
  • fugged

    Without seeing the php, i couldn't tell ya - but I'll bet it's just a delimited text file. Create an empty text file named emailSignup.dat text file, put in the correct directory and then set permissions to make it writable. To do that, just telnet in and issue a chmod command: chmod 777 emailSignup.dat. Then give it a test and see what gets written to the file.

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earJun 30, 08, 5:25 a.m. – Permalink
  • Dancer

    ok
    trying now

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earJun 30, 08, 5:40 a.m. – Permalink
  • Dancer

    the only thing I was getting wrong was setting the chmod to 777 - completely forgot that you had to fo that.

    Well IT WORKS!!!

    Thanks fugged

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earJun 30, 08, 5:49 a.m. – Permalink
  • fugged

    no worries Dancer - glad it's workin'.

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earJun 30, 08, 5:53 a.m. – Permalink

Login or Register to respond to this

Skip to main content