Jump to content

Archived

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

vetev

problem with code

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]

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites
hi guys here is code 35 - 55
[img src=\"http://img192.imageshack.us/img192/9403/code10ha.jpg\" border=\"0\" alt=\"IPB Image\" /]

Share this post


Link to post
Share on other sites
more code guys


[img src=\"http://img251.imageshack.us/img251/6683/code24sx.jpg\" border=\"0\" alt=\"IPB Image\" /]

Share this post


Link to post
Share on other sites

×

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.