hi, bascially ive got this php where I want tags to be written on a txt file from netbeans. But when i run the php file with the code:
<?php
echo "writing tags ...";
$fh = fopen("tags.txt" , "a");
fwrite($fh, $_GET["mytags"]."\r\n");
fclose($fh);
echo "done";
?>
I get the following errors:
Warning: fopen(tags.txt) [function.fopen]: failed to open stream: Permission denied in /home/u06087496/public_html/GeoData/tagimage.php on line 4
Warning: fwrite(): supplied argument is not a valid stream resource in /home/u06087496/public_html/GeoData/tagimage.php on line 5
Warning: fclose(): supplied argument is not a valid stream resource in /home/u06087496/public_html/GeoData/tagimage.php on line 6
Has anyone got any tips on how to fix this?
Thank you for any help!! Jess.
Thanks for the feedback so far guys .
Steven: How do i change the permissions on the tags.txt file?
Thanks,Jess.
its fixed, thanks guys for your help.
Happy Answering!
<?php
echo "writing tags ...";
$fh = fopen("tags.txt" , "a");
fwrite($fh, $_GET["mytags"]."\r\n");
fclose($fh);
echo "done";
?>
I get the following errors:
Warning: fopen(tags.txt) [function.fopen]: failed to open stream: Permission denied in /home/u06087496/public_html/GeoData/tagimage.php on line 4
Warning: fwrite(): supplied argument is not a valid stream resource in /home/u06087496/public_html/GeoData/tagimage.php on line 5
Warning: fclose(): supplied argument is not a valid stream resource in /home/u06087496/public_html/GeoData/tagimage.php on line 6
Has anyone got any tips on how to fix this?
Thank you for any help!! Jess.
Thanks for the feedback so far guys .
Steven: How do i change the permissions on the tags.txt file?
Thanks,Jess.
its fixed, thanks guys for your help.
Happy Answering!