Jump to content


Photo

problem with code


  • Please log in to reply
5 replies to this topic

#1 vetev

vetev
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 26 April 2006 - 07:19 PM

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]

#2 .josh

.josh
  • Staff Alumni
  • .josh
  • 14,871 posts

Posted 26 April 2006 - 07:48 PM

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.
Did I help you? Feeling generous? Buy me lunch! 
Please, take the time and do some research and find out how much it would have cost you to get your help from a decent paid-for source. A "roll-of-the-dice" freelancer will charge you $5-$15/hr. A decent entry level freelancer will charge you around $15-30/hr. A professional will charge you anywhere from $50-$100/hr. An agency will charge anywhere from $100-$250/hr. Think about all this when soliciting for help here. Think about how much money you are making from the work you are asking for help on. No, we do not expect you to pay for the help given here, but donating a few bucks is a fraction of the cost of what you would have paid, shows your appreciation, helps motivate people to keep offering help without the pricetag, and helps make this a higher quality free-help community :)

#3 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 26 April 2006 - 07:50 PM

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.

#4 vetev

vetev
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 26 April 2006 - 08:04 PM

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

#5 .josh

.josh
  • Staff Alumni
  • .josh
  • 14,871 posts

Posted 26 April 2006 - 08:10 PM

unfortunately that's not enough code. post like, 35-100 or so.
Did I help you? Feeling generous? Buy me lunch! 
Please, take the time and do some research and find out how much it would have cost you to get your help from a decent paid-for source. A "roll-of-the-dice" freelancer will charge you $5-$15/hr. A decent entry level freelancer will charge you around $15-30/hr. A professional will charge you anywhere from $50-$100/hr. An agency will charge anywhere from $100-$250/hr. Think about all this when soliciting for help here. Think about how much money you are making from the work you are asking for help on. No, we do not expect you to pay for the help given here, but donating a few bucks is a fraction of the cost of what you would have paid, shows your appreciation, helps motivate people to keep offering help without the pricetag, and helps make this a higher quality free-help community :)

#6 vetev

vetev
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 26 April 2006 - 08:25 PM

more code guys


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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users