Sijun Forums Forum Index
Log in to check your private messages
My Profile Search Who's Online Member List FAQ Register Login Sijun Forums Forum Index

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
   Sijun Forums Forum Index >> Random Musings
View previous topic :: View next topic  
Author   Topic : "hmf. PHProblem"
Coaster
member


Member #
Joined: 19 Feb 2002
Posts: 508
Location: Canada

PostPosted: Fri Feb 22, 2002 10:46 pm     Reply with quote
Hmm, an earlier post got me thinking about how to make it so people can post comments using PHP.

I've got the script done.. but it returns the error:
Warning: fopen("borken.txt","a") - Permission denied in /home/lepusoft/public_html/somesource.php on line 22

Warning: Supplied argument is not a valid File-Handle resource in /home/lepusoft/public_html/somesource.php on line 23
Error writing to file!

I'm thinking the problem is with my server itself in not allow to write to files, but it might not be (I'm new to PHP so..)
Heres the problematic part of the script if there is a problem:

<?
$user_row = "<a href=\"mailto:".$usermail."\">".$usermail."</a> | ".$timestamp." | ".$userip."<br>".$comments."\n";
?>

<?
$fd = fopen("borken.txt", "a");
fwrite($fd, $user_row) or die("Error writing to file!");
fclose($fd);
print "Thank you, data stored correctly";
?>

All the variables work fine.
Please help.. I'm really stumped on this one.
~Jeff
Back to top
View user's profile Send private message Send e-mail  
Dr.Squirley
member


Member #
Joined: 25 Apr 2001
Posts: 219
Location: Here

PostPosted: Sat Feb 23, 2002 8:34 am     Reply with quote
Messy code... but i cant help you right now.
Back to top
View user's profile Send private message Send e-mail AIM Address  
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Sijun Forums Forum Index -> Random Musings All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Powered by phpBB © 2005 phpBB Group