Page 1 of 1

fwrite () file not writable???? Plz help :-(

Posted: Fri Apr 02, 2004 4:48 pm
by Chris Corbyn
Hi,

I'm just starting out experimenting with the fwrite function since I need a quick way to update some of the files regularly on my server.

When I try to write to any file I specify I get the response that the file is not writable.

How can a make a file writable?

I'm using fopen() with the 'a' paramater at the moment does this make a difference. It's probably just a simple case of changing the permissions somehow so any help would be much appreciated.

Please note: If I need to set the permissions on the server itself, I am using my university server so cannot change their settings (only upload files etc).

Kind regards :-)

Posted: Fri Apr 02, 2004 4:49 pm
by kettle_drum
Yeah you need to chmod the file so that php has write access to it, you can do this via ftp or ssh - which ever access you have, so you shouldnt have a problem changing it.

Posted: Fri Apr 02, 2004 4:54 pm
by Chris Corbyn
Nice one cheers!

Never used chmod but I'm just reading on it now and looks obvious enough.

Thanks for prompt reply.