Jump to content

problem with code


vetev

Recommended Posts

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 44



followed 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]
Link to comment
https://forums.phpfreaks.com/topic/8494-problem-with-code/
Share on other sites

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.