1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Need help with file upload form

Discussion in 'PHP' started by bigleo23, Jan 31, 2007.

  1. #1
    I have used some php file upload scripts I found on the net, the problem is they go straight to the root of the site. How can I use this script but have it go to a specific folder.
     

    Attached Files:

    bigleo23, Jan 31, 2007 IP
  2. Alx

    Alx Member

    Messages:
    94
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    48
    #2
    try something like this:
    $file_name='your_folder_dest'.$file_name;
    $copy = copy ($_FILES['uploadFile'. $x]['tmp_name'],$file_name);
     
    Alx, Feb 1, 2007 IP
  3. klown

    klown Peon

    Messages:
    2,093
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Oh damn.. i guess i misread your post, you said this form... Oh well I pulled some old source i used before http://www.seoandstuff.com/fileupload.rar made a few changes.. its for images but should be simple to modify. It has enough notes on it and error checking to be easily understood. If you have problems you should be able to delete the slashes before some of the echo's inside the code, this will give you more error checking.
     
    klown, Feb 1, 2007 IP