Writing to Html file problem?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I had problem of writing the php data to the html, everytime i submit
the info, the data is added to the database, but not to the html file

$ourFileName = "testFile.html";
$ourFileHandle = fopen($ourFileName, 'w') or die("can't open file");

$last = trim($_POST['last']);
$comment = trim($_POST['comment']);

fwrite($ourFileHandle, "$last"\n$comment");

Re: Writing to Html file problem?

Am Mo 09.05.05 um 15:07 CEST schrieb marslee@hotmail.com:

Quoted text here. Click to load it

Hint: do a error_reporting(E_ALL); in you scripts. Than you propably had
seen the problem of the wrong quotes:
fwrite($ourFileHandle, "$last"\n$comment");
should be
fwrite($ourFileHandle, "$last\n$comment");


Site Timeline