Re: Come end of script gives a parse error
| From: | Denis L. Menezes | Date: | Sun, 04 May 2003 03:46:45 +0000 |
| Subject: | Re: Come end of script gives a parse error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146323@lists.php.net to get a copy of this message | ||
This happens sometimes when somehere higher up in the php script you might
have not closed the script - I mean you have probably missed out a "}" or
you have an additional unwanted "{".
Denis
----- Original Message -----
From: "Charlie" <charlie@rahinston.com>
To: "php general" <php-general@lists.php.net>; "Shekhar Kalra"
<skalra@cs.rmit.edu.au>; "Shekhar Kalra" <s2016170@student.rmit.edu.au>
Sent: Sunday, May 04, 2003 11:41 AM
Subject: [PHP] Come end of script gives a parse error
> Below is a snippet from the end of my code
> I get an error that there is an unexpected $ in
> /home/c/cfowler/php/write.php on line 152 but Line 152 is at the end of
> the file. How come can this be?
>
> Line Nos in grey
> 131 if ($fp)
> {
> // write input string to the file
> fwrite($fp, $new_data);
> echo "Success";
> echo "<div align=\"center\"><h4><b>New Employee
> added!</b></h4></div><br />";
> $results = true;
> }
> else
> {
> echo "Could Not Write to File";
> $results = false;
> exit;
> }
> fclose($fp);
> ?>
>
> 148</body>
> 149</html>
> 150
> 151
> 152
>
> Thanks in advance
> Charlie
>
>