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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.