Script Request

liunx

Guest
hey guys!<br /><br />im working hard on my webpage but i got some questions..<br />i seen features at other sites where users get a browse and upload button etc<br /><br />to upload a file into the webpage... i think its done through ftp<br />but its all web based.<br /><br />can someone show me how to do it?<br /><br />thanks<br />dennis<br /><br /><b>Critical Mass: Moved to here for Dark and removed duplicate post.</b><!--content-->
CM: Topics merged<!--content-->
Hi Dennis.<br /><br />I just create my own upload scripts for each situation but you may prefer to use a pre-made script. Check this page and see if it has a script that fits your needs:<br />www.hotscripts.com/PHP/Scripts_and_Programs/File_Manipulation/Upload_Systems/index.html<br /><br />Hope it helps <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><!--content-->
hi thanks<br /><br />I dont know any PHP so it wont be easy for me to get everything going.<br /><br /><br />//Full server path to the directory that holds the uploader files (must contain trailing slash at beginning and end)<br />//If you are unsure of this, see the read me file<br />$server_path = "/home/pathto/yourfolder/maian_uploader/";<br /><br />//URL to the directory that holds your uploader files (NO trailing slash at the end)<br />$url_path = "http://yoursite.com/maian_uploader";<br /><br /><br />--<br />just wondering what that should be<br />assuming i will be <a href="http://terminatorsoflife.com" target="_blank">http://terminatorsoflife.com</a><br />assuming ill make anthor folder directly outside of www called /php/<br />--<br />thx, <br /><img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /><!--content-->
If your upload files are in your main directory, then the first one is going to be something like<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->$server_path = "/home/THClogin/public_html/";<!--c2--></div><!--ec2--><br />where you replace THClogin with whatever your username is (since it's the same as your main folder).<br /><br />You're correct in that the second one will be <br />$url_path = "http://terminatorsoflife.com";<br /><br />Like I said, these are assuming your files are in your main directory.<br /><br /><br />*edit* yeah, I copied things wrong and that $url_path was in there twice.<!--content-->
thanks it works just making sure hte security is good on it now<!--content-->
 
Back
Top