[PHP help] Direct upload

Discussion in 'Web Programming' started by Cody, Apr 11, 2007.

[PHP help] Direct upload
  1. Unread #1 - Apr 11, 2007 at 11:36 PM
  2. Cody
    Joined:
    May 10, 2005
    Posts:
    3,052
    Referrals:
    5
    Sythe Gold:
    30

    Cody Grand Master
    Visual Basic Programmers

    [PHP help] Direct upload

    I need help writing simple php code.

    I need to be able to do this

    Code:
    www.mywebsite.com/upload.php?targ=C:\whatever\whatever.txt
    When I visit that link I need it to upload whatever.txt to my site

    I tried writing the code myself but cant get it to work

    Can someone help me out?
     
  3. Unread #2 - Apr 13, 2007 at 1:51 AM
  4. Cody
    Joined:
    May 10, 2005
    Posts:
    3,052
    Referrals:
    5
    Sythe Gold:
    30

    Cody Grand Master
    Visual Basic Programmers

    [PHP help] Direct upload

    i still need this.... Anyone?
     
  5. Unread #3 - Apr 13, 2007 at 5:28 PM
  6. night
    Joined:
    Apr 21, 2005
    Posts:
    60
    Referrals:
    1
    Sythe Gold:
    5

    night Member
    Banned

    [PHP help] Direct upload

    ok, so you can't use a get value to upload files. What you CAN do is use a form to upload the file to a temp location. Then you can copy the file from there to another location that you can specify.

    Read this:
    http://w3schools.com/php/php_file_upload.asp

    if you need help, you can aim me.
     
  7. Unread #4 - Apr 17, 2007 at 2:27 AM
  8. Cody
    Joined:
    May 10, 2005
    Posts:
    3,052
    Referrals:
    5
    Sythe Gold:
    30

    Cody Grand Master
    Visual Basic Programmers

    [PHP help] Direct upload

    Nvm.. I found a different way :)

    Thanks anyways
     
  9. Unread #5 - Apr 17, 2007 at 8:56 PM
  10. cp
    Joined:
    Jan 30, 2007
    Posts:
    3,278
    Referrals:
    6
    Sythe Gold:
    0

    cp an cat
    Banned

    [PHP help] Direct upload

    It won't work, I believe you need to either give the file (as in consenting through a browse+upload form) because an issue like that was addressed with internet explorer 5 or 6, saying that you can get any file you want from the target computer as long as you knew the name and location.

    Are you trying to steal a copy of a file from someone?
     
< World select page | Where do I get started? Seriously...... >

Users viewing this thread
1 guest


 
 
Adblock breaks this site