• Log in or sign up for an account here: https://www.sythe.org/login

[PHP help] Direct upload

Cody

Grand Master

Visual Basic Programmers
Joined
May 10, 2005
Sythe Gold
30
Messages
3,052
Age
36
Location
USA, Oregon
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?
 
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.
 
Nvm.. I found a different way :)

Thanks anyways
 
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?
 
Runescape Gamblingrunescape gambling
Back
Top