PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
pilau
Forum Regular
Posts: 594 Joined: Sat Jul 09, 2005 10:22 am
Location: Israel
Post
by pilau » Fri Sep 23, 2005 1:10 pm
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?
Last edited by
pilau on Fri Sep 23, 2005 2:12 pm, edited 1 time in total.
josh
DevNet Master
Posts: 4872 Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida
Post
by josh » Fri Sep 23, 2005 1:16 pm
fwrite()
McGruff
DevNet Master
Posts: 2893 Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland
Post
by McGruff » Fri Sep 23, 2005 1:20 pm
Also, the id under which php is running will need the write permission.
pilau
Forum Regular
Posts: 594 Joined: Sat Jul 09, 2005 10:22 am
Location: Israel
Post
by pilau » Fri Sep 23, 2005 2:04 pm
It runs on a webhosting company's server so that's not a problem