Jump to content

Recommended Posts

Posted (edited)

hey guys!

 

im working hard on my webpage but i got some questions..

i seen features at other sites where users get a browse and upload button etc

 

to upload a file into the webpage... i think its done through ftp

but its all web based.

 

can someone show me how to do it?

 

thanks

dennis

 

Critical Mass: Moved to here for Dark and removed duplicate post.

Edited by Critical Mass
Posted

Hi Dennis.

 

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:

www.hotscripts.com/PHP/Scripts_and_Programs/File_Manipulation/Upload_Systems/index.html

 

Hope it helps :)

Posted

hi thanks

 

I dont know any PHP so it wont be easy for me to get everything going.

 

 

//Full server path to the directory that holds the uploader files (must contain trailing slash at beginning and end)

//If you are unsure of this, see the read me file

$server_path = "/home/pathto/yourfolder/maian_uploader/";

 

//URL to the directory that holds your uploader files (NO trailing slash at the end)

$url_path = "http://yoursite.com/maian_uploader";

 

 

--

just wondering what that should be

assuming i will be http://terminatorsoflife.com

assuming ill make anthor folder directly outside of www called /php/

--

thx,

;)

Posted

If your upload files are in your main directory, then the first one is going to be something like

>$server_path = "/home/THClogin/public_html/";

where you replace THClogin with whatever your username is (since it's the same as your main folder).

 

You're correct in that the second one will be

$url_path = "http://terminatorsoflife.com";

 

Like I said, these are assuming your files are in your main directory.

 

 

*edit* yeah, I copied things wrong and that $url_path was in there twice.

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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