note 4732 deleted from fwrite by ronabop

From: Date: Fri, 18 Aug 2000 05:08:14 +0000
Subject: note 4732 deleted from fwrite by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-2428@lists.php.net to get a copy of this message
I am running an HTML page, it contains a form, I want to output the submitted data into a text file. I want to store the file on a Unix server. I'm trying to write to the file "comments.txt". However, the script is not writing to the source. I have catered for the "nobody" owner access previleges. I have set the permissions correctly. I have pointed the script through an HTML form. I don't know what the problem is, help :( <?php $myfile = fopen("public_html/comments/comments.txt", "a+"); if ($comments.txt) { fputs ($myfile, "Date: $date1n"); fputs ($myfile, "Channel: $channeln"); fputs ($myfile, "-----------------------n"); } fclose ($myfile); ?>

« previous php.notes (#2428) next »