How do you do a PHP drive-by-uploader?

  • Thread starter Thread starter falcon_developer
  • Start date Start date
F

falcon_developer

Guest
I am looking to make a PHP page that uploads something from your system as soon as you visit the page. For what I have seen, the way that an uploader works, the "Browse File" form simply submits the file name and location (among max size, etc) to a PHP form. That PHP form then grabs the file. COuld you not simply bypass the upload form and just have the page do it automatically? If this is possible, could someone point me to the code for this? I'm having trouble understanding haw to tweak existing PHP uploaders.

Note: This is not for illegitimate purposes; it's actually needed. Also, I have working knowledge of PHP, so I can understand if code on a site needs to be changed slightly.
Thanks!
Also, are there any places that you CAN'T upload a file from with PHP?
In response to your answer, then how does a PHP uploader work?
 
By design, PHP cannot access a client computer. You would need to use something like an ActiveX or Java control to do this, and in either case, the client would need to approve the control having access to the local file system.

PHP is capable of saving a file to any location / directory in the local filesystem to which the public (or the process invoking PHP) has write privileges.
 
Back
Top