PHP upload file to remote host
|
Original Message
|
Name: firstofthephp
Date: June 16, 2006 at 06:58:29 Pacific
Subject: PHP upload file to remote hostOS: Ubuntu 6.06 + Apache 2 anCPU/Ram: 1.4ghz AMD Athlon, 384mbModel/Manufacturer: - |
Comment: Hello, does anybody know how I can upload a file from my Apache server to the remote host via PHP? I also have FTP, if that makes any difference. What I want is for when someone goes to my computer (say, http://192.168.1.123/upload.php) it will put a file on the desktop of the computer that accessed it (the computers that are accessing this are running Windows XP) The reason I ask is because I'm setting up a small network and all of the computers running Windows that have Deepfreeze on them, so files can not be saved. This file isn't always needed, so this is the solution I had in mind. Thanks everybody!
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: Laler
Date: June 16, 2006 at 08:22:02 Pacific
Subject: PHP upload file to remote host |
Reply: (edit)No you can't put files (except cookies) into the visitor's PC without their permission. I think the best you can do is to provide download links, automatic if you prefer. --- Site of the Day
Report Offensive Follow Up For Removal
|
|
Response Number 2
|
Name: Laler
Date: June 16, 2006 at 08:30:42 Pacific
Subject: PHP upload file to remote host |
Reply: (edit)PHP & FTP If every PC has FTP server enabled (it's in IIS), and you (the webserver) has access & the required username, the FTP server can be set to include the user's desktop in it. So you can upload files by using PHP's FTP functions in anytime you like without buggering the user. --- Site of the Day
Report Offensive Follow Up For Removal
|
Use following form to reply to current message: