Page 1 of 1

Writing files on PHP 4

Posted: Fri Sep 23, 2005 1:10 pm
by pilau
I have a string which I would like to write to a file without using PHP5's file_put_content(). (designed to work with PHP4).

How would that be done?

Posted: Fri Sep 23, 2005 1:16 pm
by josh
fwrite()

Posted: Fri Sep 23, 2005 1:20 pm
by McGruff
Also, the id under which php is running will need the write permission.

Posted: Fri Sep 23, 2005 2:04 pm
by pilau
It runs on a webhosting company's server so that's not a problem :)