sbridge Posted January 23, 2006 Posted January 23, 2006 Hey... I found this PHP script to implement a photo upload on my website... I put the script online as everything said in the zip file and yet I get an error... I changed the permissions so that the "WEB" can write as it said and still didn't work... HELP!? My Link: http://www.nightlife3.com/fileupload/ The Error: Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in MYDIRECTORY/fileupload/fileupload.class.php on line 44 Any ideas on the error? How to fix it? I'm an absolute idiot when it comes to PHP... Thanks for looking!! upload.zip Quote
TCH-Andy Posted January 23, 2006 Posted January 23, 2006 Did you upload it in ASCII mode? If you upzipped and uploaded from your PC ? Quote
sbridge Posted January 23, 2006 Author Posted January 23, 2006 Did you upload it in ASCII mode? If you upzipped and uploaded from your PC ? I had unzipped the file and just uploaded it via FTP... did I do something wrong?? Quote
TCH-Bruce Posted January 23, 2006 Posted January 23, 2006 REQUIREMENTS:---------------------------------------------------------------------- - PHP 5.0 or greater - PHP 'file_uploads' turned On (this is PHP's default) The servers are running version 4.4.x Quote
sbridge Posted January 23, 2006 Author Posted January 23, 2006 The servers are running version 4.4.x Shoot! That would explain it then! When we upgrading?? THANKS! Edit: TCH-Bruce Remember these are family fourms. Quote
TCH-Tim Posted January 23, 2006 Posted January 23, 2006 When we upgrading?? Don't hold your breath. Quote
sbridge Posted January 23, 2006 Author Posted January 23, 2006 Don't hold your breath. LOL... I gathered that... Quote
TCH-Bruce Posted January 23, 2006 Posted January 23, 2006 I'm sure you can find a suitable replacement at hotscripts.com that will work. Quote
sbridge Posted January 23, 2006 Author Posted January 23, 2006 I'm sure you can find a suitable replacement at hotscripts.com that will work. Cool... thanks for your help! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.