Forum Moderators: coopster
?>
It is with fopen line can someone please help?
thank-you
Actually, you have a couple of problems. Firstly, this line is missing a semi colon at the end:
$todayCondition = $_POST['todayCondition']
Which is the reason you think the fopen line is the problem. In PHP, the error is not always on the line it states, but the previous line.
Secondly, this line is wrong:
fputs($weatherFile,"$todayCondition:$highTemp:$lowTemp\n");
The colons here will probably return a parse error. You need to concatenate the vars like this:
fputs($weatherFile,$todayCondition.":".$highTemp.":".$lowTemp\n");
Does that help?
dc