note 23414 deleted from function.fputs by betz
| From: | betz@php.net | Date: | Thu, 21 Nov 2002 11:30:32 +0000 |
| Subject: | note 23414 deleted from function.fputs by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-39798@lists.php.net to get a copy of this message | ||
im trying to write to a file called affiliate.txt, instead its writing to affiliatetxt ... i checked
the script and all the dots are there do i need to put some special thing in there? this is what m
doing:
$string="hello";
$fp= fopen(affiliate.txt,"aw");
fputs($fp, $string);
fclose($fp);
also for people who dont know much about php like me you can't just go fputs(what you want to
save); you need to open the file from with in fputs (i used $fp and then write you data... it makes
it neater if you use a variable for this to then you need to close the $fp any way i dont know much
php im writing my first script