Re: [PHP] What's the proper way to open a file? File access permissions?

2003-02-17 Thread Dunkel
Jason Wong wrote: On Friday 14 February 2003 16:36, Dunkel wrote: How do I ensure that all file access permissions are allowed? What is the proper way to do it? - I tried to 'fopen' an existing text file but got "Permission denied" error. - I tried different parameters,

[PHP] What's the proper way to open a file? File access permissions?

2003-02-14 Thread Dunkel
text to add\n"; $handle = fopen($filename, 'a+w'); fwrite($handle, $somecontent); fclose($handle); ?> So, what should I do to get it work? Yours, Paul Dunkel -- [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Q: file writing problem - help desperately needed

2003-02-12 Thread Dunkel
ontent = 'PERKELE\n'; $filename = 'teksti.txt'; $handle = fopen($filename, 'wb'); fwrite($handle, $somecontent); fclose($handle); I've tried this in two totally different servers, today I'll try on the third one. All help absolutely welcome! Paul Dunkel -- pdun

Re: [PHP] Re: File not rewritable - why? Help needed.

2003-02-12 Thread Paul Dunkel
ERKELE\n'; $filename = 'teksti.txt'; $handle = fopen($filename, 'wb'); fwrite($handle, $somecontent); fclose($handle); I've tried this in two totally different servers, tomorrow I'll try on the third one. All help absolutely welcome! Paul Dunkel -- pdunkel.nic.fi