RE: [PHP] quick friday query
| From: | caspar kennerdale | Date: | Sun, 18 Nov 2001 19:03:07 +0000 |
| Subject: | RE: [PHP] quick friday query | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-74918@lists.php.net to get a copy of this message | ||
ahh
write permission the folder- duh- not thinkingtoday
thank alot
-----Original Message-----
From: R'twick Niceorgaw [mailto:rtwick@niceorgaw.com]
Sent: 16 November 2001 18:14
To: Caspar Kennerdale; Php-General
Subject: Re: [PHP] quick friday query
check under what user Apache is running ( mostly nobody ). You have to give
write permission on the directory where you want the files to be to that
user. For security reasons, just don't give write access on your
document_root, instead create a directory outside ( or within) your
document_root and give write access on it to nobody ( Apache user id) and
write your file there.
----- Original Message -----
From: "Caspar Kennerdale" <caspar@spin.co.uk>
To: "Php-General" <php-general@lists.php.net>
Sent: Friday, November 16, 2001 12:49 PM
Subject: [PHP] quick friday query
> 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?
>
> Thanks
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net