RE:

From: Date: Mon, 29 Apr 2002 14:40:35 +0000
Subject: RE:
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-95127@lists.php.net to get a copy of this message
PHP cannot open that file. If you’re on a *nix type system, adjust the permissions of the file so that the user that PHP runs as has access to the file. Also, the beginning / is probably causing trouble, because it’s looking from the root of your server for a file named public_html. ---John Holmes… -----Original Message----- From: Rodrigo [mailto:tagzero@tagzero.com] Sent: Sunday, April 28, 2002 8:51 PM To: php-general@lists.php.net; 'Miguel Cruz'; 'John Holmes' Subject: Ok, but I'm trying the following code wich is basicaly the same Miguel sent me and I still get the same message. Please excuseme for being so repetitive but Í don't seem to see where is the mistake, Sorry guys for the trouble. <?php $file_pointer = fopen('/public_html/emails.txt', "a") || exit; $string_to_write = ("$newemail") . "\n"; fwrite($file_pointer, $string_to_write); fclose($file_pointer); ?> Warning: Supplied argument is not a valid File-Handle resource in /home/restricted/home/h4ck3r/public_html/write.php on line 4 Warning: Supplied argument is not a valid File-Handle resource in /home/restricted/home/h4ck3r/public_html/write.php on line 6

« previous php.general (#95127) next »