SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Non-Member
    Join Date
    Dec 2004
    Location
    London
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    very basic "install" file help!

    Is there anyone that can help me with this?
    I am trying to create an install file, so if a user enters information into a text box in install.php, it will save it in file "prefs.php."
    Right now, I am about ready to throw my computer through the window because it seems like I have tried everything but nothing works!

  2. #2
    Non-Member bronze trophy geniusgoalie's Avatar
    Join Date
    Sep 2004
    Location
    Buffalo, USA
    Posts
    979
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try this:
    PHP Code:
    $location='/prefs.php';
    $file=file_get_contents($location);
    $file.='text to include';
    $r=fopen($location'w');
    fputs($r$file);
    fclose($r); 


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •