Page 1 of 1

Can you write a file to disk or hard drive using php?

Posted: Wed Nov 01, 2006 10:43 am
by KG
Is it possible to write a file to disk or hard drive using php? I need to create a .txt file and save it to either the desktop or C:\ directory if possible. Actually, I don't even need to create one, I could just edit an existing one. Any help would be greatly appreciated.

Posted: Wed Nov 01, 2006 10:44 am
by volka

Posted: Wed Nov 01, 2006 10:45 am
by onion2k
You can write files to the place where PHP is running (the server), but not to the client (the browser).