View Single Post
08-07-2006, 06:46 PM
#5
sketchie is offline sketchie
sketchie's Avatar
Status: Senior Member
Join date: Jul 2005
Location:
Expertise:
Software:
 
Posts: 835
iTrader: 1 / 100%
 

sketchie is on a distinguished road

  Old

I had a quick glance through, and unless PHP has changed since i last dabbed with it,

PHP Code:
if(($filesize $MaxFileSize) | $filesize ) { 
should be

PHP Code:
if(($filesize $MaxFileSize) || $filesize == ) { 
As in PHP or is || not |, and you're also not checking if the filesize is 0 by using "=" this is the assignment operator, you need ==.

Edit:

You've also done it here:
PHP Code:
if( $error ) { 
make it
PHP Code:
if( $error == ) { 
Though I don't see why you're doing it like this, using integers rather than booleans.