Re: quick friday query
| From: | James Green | Date: | Fri, 16 Nov 2001 18:09:57 +0000 |
| Subject: | Re: quick friday query | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-74912@lists.php.net to get a copy of this message | ||
On Fri, 2001-11-16 at 17:49, Caspar Kennerdale wrote:
> I am writing files to my server using
>
> $fp = fopen("myfile.txt", "w");
>
> this all works. However in the php manual it says that by using the "w"
> switch that php will create the file if it doesn exist
>
> However this does not seem to work
>
> I can only write to a file that already exists and has CHMOD 777
>
> Is this a school boy error or do I need my server re configured?
Sounds like the webserver doesn't have permission to write into that
directory. Permissions 777 lets anyone write to the file, so there's a
good chance I'm right.
jg