vetev Posted April 26, 2006 Share Posted April 26, 2006 anyone know why this wont work?trying to allow users to upload images to my server.[a href=\"http://cheaters.vetev.com/fileupload/index.php\" target=\"_blank\"]http://cheaters.vetev.com/fileupload/index.php[/a]i get this error message: Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /var/www/cheaters/fileupload/fileupload.class.php on line 44followed these instructions.Create a directory named 'fileupload' on your website, so the path is [a href=\"http://yoursite.com/fileupload\" target=\"_blank\"]http://yoursite.com/fileupload[/a] 2. Copy all the following files to your /fileupload dir + fileupload.class.php + index.php + uploads (empty directory) 3. Change permissions on the 'uploads' directory so it's writable by your webserver: chmod 777 /path/to/fileupload/uploads 4. Test it out: [a href=\"http://yoursite.com/fileupload/index.php\" target=\"_blank\"]http://yoursite.com/fileupload/index.php[/a] Quote Link to comment https://forums.phpfreaks.com/topic/8494-problem-with-code/ Share on other sites More sharing options...
.josh Posted April 26, 2006 Share Posted April 26, 2006 well you probably missed a } or a ' or something somewheres. you need to post the code that that error belongs to in order for someone to find where it needs to be. Quote Link to comment https://forums.phpfreaks.com/topic/8494-problem-with-code/#findComment-31075 Share on other sites More sharing options...
wildteen88 Posted April 26, 2006 Share Posted April 26, 2006 Basically you have an error in your code. If you post your code here we'll be able to help you.BY looks of things you're missing a clossing brace before or on line 44. If you could post lines 40 to 45 here then we'll be able to help you alot more. Quote Link to comment https://forums.phpfreaks.com/topic/8494-problem-with-code/#findComment-31077 Share on other sites More sharing options...
vetev Posted April 26, 2006 Author Share Posted April 26, 2006 hi guys here is code 35 - 55[img src=\"http://img192.imageshack.us/img192/9403/code10ha.jpg\" border=\"0\" alt=\"IPB Image\" /] Quote Link to comment https://forums.phpfreaks.com/topic/8494-problem-with-code/#findComment-31082 Share on other sites More sharing options...
.josh Posted April 26, 2006 Share Posted April 26, 2006 unfortunately that's not enough code. post like, 35-100 or so. Quote Link to comment https://forums.phpfreaks.com/topic/8494-problem-with-code/#findComment-31083 Share on other sites More sharing options...
vetev Posted April 26, 2006 Author Share Posted April 26, 2006 more code guys[img src=\"http://img251.imageshack.us/img251/6683/code24sx.jpg\" border=\"0\" alt=\"IPB Image\" /] Quote Link to comment https://forums.phpfreaks.com/topic/8494-problem-with-code/#findComment-31084 Share on other sites More sharing options...
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.