Re: What's the proper way to open a file? File access permissions?
| From: | Dunkel | Date: | Mon, 17 Feb 2003 08:17:04 +0000 |
| Subject: | Re: What's the proper way to open a file? File access permissions? | ||
| References: | 1 2 | Groups: | php.general php.general |
| Request: | Send a blank email to php-general+get-135806@lists.php.net to get a copy of this message | ||
Jason Wong wrote:
On Friday 14 February 2003 16:36, Dunkel wrote:Okay, thank you. I'll try that. Is there any way to find out the full - whole - path? Paul Dunkel -- pdunkel@nic.fiHow 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, same error - I tried to use 'chmode', same thing .... So, what should I do to get it work?Try using the /fullpath/to/the/file. If you're in doubt about the permissions try writing to the system temp directory (/tmp for example).