User(s) browsing this thread: 1 Guest(s)

2420 views

PHP Uploader: How to set upload path to local computer?

Author Message
adamo5e
Junior Member
**

Posts: 2 Joined: May 2014 Reputation: 0 Status: OFFLINE
Post: #1
PHP Uploader: How to set upload path to local computer?
How can I set my uploader to save uplodaded files into folder on my computer? I'm hosting a free server on 000webhost.com and I have a simple uploader script ^^ So I'd like to do something like this:

Code:
//specify folder for file upload
$folder = "C:\Users\Tepa\Desktop\Ohjelmat\Uploads";
05-30-2014 01:03 AM
Find Quote
admin
Administrator
*******

Posts: 11 Joined: Apr 2014 Reputation: 0 Status: OFFLINE
Post: #2
RE: PHP Uploader: How to set upload path to local computer?
When you save the file in server-side code, you set its path there. In what way is this not working? If you want the server to save a file to the computer running the web browser, it doesn't work that way. Thankfully, web pages can't access the client's file system.
05-30-2014 01:04 AM
Find Quote
yannysi
Junior Member
**

Posts: 1 Joined: May 2014 Reputation: 0 Status: OFFLINE
Post: #3
Cvp: PHP Uploader: How to set upload path to local computer?
In order to have a website save files on your local computer, you will need to install a ftp or other fileserver on your home computer and send the file by IP address, or DNS address.
05-30-2014 01:08 AM
Find Quote
letsidc
Senior Member
****

Posts: 438 Joined: Jan 2015 Reputation: 0 Status: OFFLINE
Post: #4
Cvp: PHP Uploader: How to set upload path to local computer?
When you save the file in server-side code, you can set its path.
01-05-2015 05:59 PM
www Find Quote
hmb-willem
Junior Member
**

Posts: 12 Joined: Dec 2015 Reputation: 0 Status: OFFLINE
Post: #5
Cvp: PHP Uploader: How to set upload path to local computer?
I would suggest instead to tackle this from the opposite direction and write a script to pull these files to your local computer rather than open it up to the outside world. You can set it up as either a cron job / scheduled task so that the files are pulled in automatically
01-19-2016 06:56 PM
Find Quote


Forum Jump: