Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need help with fputs() and fopen()

Status
Not open for further replies.

SJW

Programmer
Jun 19, 2000
6
US
I can't get this script to write to the file "emails.txt"
and I dont get any errors.
I changed the write permission to \w on the server.
I just dont know!!

<?
if (file_exists(&quot; {
$savefile = file(&quot; $fh = fopen(&quot; fputs($fh,$Form.&quot;\n&quot;);
fclose($savefile);
}
else
{
$savefile = fopen(&quot;fputs($savefile,$Form.&quot;\n&quot;);
fclose($savefile);
}
?>


can someone help with this mess?

Thanks,
Steve
 
You are trying to save via HTTP.. is the script on the same filesystem as the place where you want to save? If so, don't use all the http stuff.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top