Re: Parse Error - Help?
| From: | Jason Wong | Date: | Thu, 25 Apr 2002 03:27:10 +0000 |
| Subject: | Re: Parse Error - Help? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-94503@lists.php.net to get a copy of this message | ||
On Thursday 25 April 2002 11:20, Jason Soza wrote:
> Can someone take a look at this code for me? I'm pretty new to programming,
> but looking at it I think it should work. I'm not saying there aren't
> plenty of errors, because I'm sure there are. I'm getting a parse error on
> the last line, and I can't see any reason for it. All of my ifs and
> functions are closed as far as I see. I guess I'm just looking for an
> unbiased eye here, I've been staring at this for a couple hours now. If you
> have comments on to how I could simplify this code, that'd be great too.
> Otherwise, I just need it to get it working. Thanks in advance -
> if ( isset($HTTP_POST_VARS["upload"]) ) {
>
>
> if ($HTTP_POST_FILES['userfile1']['name']) {
> $orig_name1 = $HTTP_POST_FILES['userfile1']['name'];
> $filename1 = filename_mod ($orig_name1);
> filesize_check ($filesize1);
> if ( $rc == 0 ) {
> if($extval_use=1) {
> ext_valid ($filename1);
> }
> }
> if ( $rc == 0 ) {
> file_upload ($filename1);
> } <--------------------- HERE
> }
Could it be this extra closing brace?
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
Semper Fi, dude.
*/