RE: [PHP] Parse Error - Help?
| From: | Jason Soza | Date: | Thu, 25 Apr 2002 03:56:12 +0000 |
| Subject: | RE: [PHP] Parse Error - Help? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-94504@lists.php.net to get a copy of this message | ||
Found it - just added another curly brace to the end of the code and it
worked, so I searched up from there and found:
function ext_valid ($filename) {
$extget = substr( strrchr($filename, "."), 1);
$found = in_array($extget, $extval);
if ( $found ) {
echo "<p><font color='red'><center>"
. $message["invext"]."</font></center></p>";
$rc = 2;
}
This function should have another curly brace at the end. Aha! Thanks for
your help!
Jason
-----Original Message-----
From: Tyler Longren [mailto:tyler@captainjack.com]
Sent: Wednesday, April 24, 2002 7:22 PM
To: Jason Soza; php-general@lists.php.net
Subject: Re: [PHP] Parse Error - Help?
Copy and paste the parse error into your e-mail. Also, try placing another
"}" at the end of the code. If you're missing a closing bracket somewhere,
that will take care of it.
Tyler Longren
Captain Jack Communications
www.captainjack.com
tyler@captainjack.com