On Mon, 28 Feb 2005 21:27:10 -0800 (PST), hello
<[EMAIL PROTECTED]> wrote:
> 
> hello friends,
>       im trying a simple php script which writes to a
> file.when i run the script from the console,the file
> is created and the contents are written to the
> file.but when i call the same script from mozilla,it
> returns an error "permission denied-failed to open
> stream".i ran the following command "chmod 777
> /var/www/html".but then also im getting the same
> error.help me friends...

Do one thing. Make a folder (say php) inside /var/www/html, then move
your script inside that. Also, make the php folder either 777 or
change the ownership permissions so that your web server process (
most probably apache or nobody ) can write there.

In your script, give the complete path to the output file like
/var/www/html/php/data.txt

HTH,
Jemshad
http://jemshad.com


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
linux-india-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to