#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    36
    Rep Power
    15
    I just read 'User-Contributed: PHP, Mysql, and Images
    August 03, 1999

    PHP, MySQL, and Images
    by Willim Samplonius '
    here on DevShed. My question is where will the uploded file end up at on my vitural server? This is the command exec( "cp $picture /full/path/to/joesauto/images/$picture_name");? If this ends up in mydomain-www and I want it in mydomain-www/images what do I add?



    ------------------
    Thanks Dr.E.L.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    36
    Rep Power
    15
    Well after some time I have found the answer.
    So I am posting it here, hope it helps someone The comand to upload the file to my server (virtual) using a form is

    exec( "cp $picture /home/my_user_name/my_domain_name-www/directory_name/$picture_name");

    The directory must have full permisions
    This will upload the file with the same filename and ext as it is on the users computer.

Similar Threads

  1. Replies: 1
    Last Post: February 8th, 2004, 02:59 PM
  2. PHP file upload script trouble
    By casbboy in forum PHP Development
    Replies: 9
    Last Post: February 5th, 2004, 08:42 PM
  3. file upload only 1 format either jpg or gif
    By phprock in forum PHP Development
    Replies: 4
    Last Post: November 29th, 2003, 03:57 PM
  4. upload thoughts and pointers
    By Enquest in forum PHP Development
    Replies: 4
    Last Post: March 9th, 2003, 04:03 PM
  5. ftp upload ware
    By jahu in forum FTP Help
    Replies: 8
    Last Post: September 5th, 2002, 04:12 PM

IMN logo majestic logo threadwatch logo seochat tools logo