friends,
   i tried your suggestions.but it is not working.this
is my code and i had listed the errors thrown by
apache
also.i had given the permissions "755" for the
directory "/var/www/html" and also "644" for my
script.
but even then it is reporting error.

my code::
<?php
                                                      
                         
$filehandle=fopen("/var/www/html/r.txt","w");
fwrite($filehandle,"hello friends");
fclose($filehandle);

?>



errors reported by apache::

Warning: fopen(/var/www/html/r.txt): failed to open
stream: Permission denied in /var/www/html/1.php on
line 3

Warning: fwrite(): supplied argument is not a valid
stream resource in /var/www/html/1.php on line 4

Warning: fclose(): supplied argument is not a valid
stream resource in /var/www/html/1.php on line 5


                                with regards..
                                  ravi.


        
                
__________________________________ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/


-------------------------------------------------------
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