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.
*/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php