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!


-----Original Message-----
From: Tyler Longren [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 7:22 PM
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

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to