File Upload With Php

admin

Administrator
Staff member
Hey... I found this PHP script to implement a photo upload on my website... I put the script online as everything said in the zip file and yet I get an error... I changed the permissions so that the "WEB" can write as it said and still didn't work... HELP!? <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/surrender.gif" style="vertical-align:middle" emoid=":surrender:" border="0" alt="surrender.gif" /> <br /><br />My Link: <a href="http://www.nightlife3.com/fileupload/" target="_blank">http://www.nightlife3.com/fileupload/</a><br /><br />The Error:<br />Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in MYDIRECTORY/fileupload/fileupload.class.php on line 44<br /><br />Any ideas on the error? How to fix it? I'm an absolute idiot when it comes to PHP... Thanks for looking!! <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/blink.gif" style="vertical-align:middle" emoid=":blink:" border="0" alt="blink.gif" /><!--content-->
Did you upload it in ASCII mode? If you upzipped and uploaded from your PC ?<!--content-->
<!--quoteo(post=163992:date=Jan 23 2006, 12:57 PM:name=TCH-Andy)--><div class='quotetop'>QUOTE(TCH-Andy @ Jan 23 2006, 12:57 PM) <a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=163992"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><div class='quotemain'><!--quotec-->Did you upload it in ASCII mode? If you upzipped and uploaded from your PC ?<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />I had unzipped the file and just uploaded it via FTP... did I do something wrong??<!--content-->
<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->REQUIREMENTS:<br />----------------------------------------------------------------------<br />- PHP 5.0 or greater<br />- PHP 'file_uploads' turned On (this is PHP's default)<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />The servers are running version 4.4.x<!--content-->
<!--quoteo(post=163994:date=Jan 23 2006, 01:00 PM:name=TCH-Bruce)--><div class='quotetop'>QUOTE(TCH-Bruce @ Jan 23 2006, 01:00 PM) <a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=163994"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><div class='quotemain'><!--quotec-->The servers are running version 4.4.x<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br /> <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/oops.gif" style="vertical-align:middle" emoid=":oops:" border="0" alt="oops.gif" /> <br />Shoot! <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/wallbash.gif" style="vertical-align:middle" emoid=":wallbash:" border="0" alt="wallbash.gif" /> That would explain it then! When we upgrading?? <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/w00t.gif" style="vertical-align:middle" emoid=":w00t:" border="0" alt="w00t.gif" /> <br /><br /> <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/tchrocks!.gif" style="vertical-align:middle" emoid=":tchrocks!:" border="0" alt="tchrocks!.gif" /> THANKS!<br /><br /><br /><!--sizeo:1--><span style="font-size:8pt;line-height:100%"><!--/sizeo--><!--coloro:#FF0000--><span style="color:#FF0000"><!--/coloro-->Edit: TCH-Bruce Remember these are family fourms.<!--colorc--></span><!--/colorc--><!--sizec--></span><!--/sizec--><!--content-->
<!--quoteo(post=163995:date=Jan 23 2006, 10:01 AM:name=sbridge)--><div class='quotetop'>QUOTE(sbridge @ Jan 23 2006, 10:01 AM) <a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=163995"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><div class='quotemain'><!--quotec-->When we upgrading??<!--QuoteEnd--></div><!--QuoteEEnd--><br />Don't hold your breath.<!--content-->
<!--quoteo(post=163999:date=Jan 23 2006, 01:17 PM:name=timhodge)--><div class='quotetop'>QUOTE(timhodge @ Jan 23 2006, 01:17 PM) <a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=163999"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><div class='quotemain'><!--quotec-->Don't hold your breath.<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />LOL... I gathered that...<br /> <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/lol.gif" style="vertical-align:middle" emoid=":lol2:" border="0" alt="lol.gif" /><!--content-->
I'm sure you can find a suitable replacement at hotscripts.com that will work.<!--content-->
<!--quoteo(post=164002:date=Jan 23 2006, 01:30 PM:name=TCH-Bruce)--><div class='quotetop'>QUOTE(TCH-Bruce @ Jan 23 2006, 01:30 PM) <a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=164002"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><div class='quotemain'><!--quotec-->I'm sure you can find a suitable replacement at hotscripts.com that will work.<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br /> <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/kicking.gif" style="vertical-align:middle" emoid=":dance:" border="0" alt="kicking.gif" /> Cool... thanks for your help!<!--content-->
 
Back
Top