By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,716 Members | 1,306 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,716 IT Pros & Developers. It's quick & easy.

ftp_put - How do I reference a file on my hard drive

P: n/a
I am just trying a simple up load of a file on my hard drive to my ftp
site.

$source_file="file://C:/1PRV.TXT";

I get the error "remote host file access not supported,
file://C:/1PRV.TXT"

I can connect, log on and change directories just fine.

Any help would be appreciated.

Thanks, Steve
Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Try using "C:\\1PRV.TXT" as your local address?
se******@swbell.net wrote:
I am just trying a simple up load of a file on my hard drive to my ftp
site.

$source_file="file://C:/1PRV.TXT";

I get the error "remote host file access not supported,
file://C:/1PRV.TXT"

I can connect, log on and change directories just fine.

Any help would be appreciated.

Thanks, Steve

Jul 17 '05 #2

P: n/a
se******@swbell.net treated the lovely people of comp.lang.php
with the following stuff:
I am just trying a simple up load of a file on my hard drive to
my ftp site.

$source_file="file://C:/1PRV.TXT";

I get the error "remote host file access not supported,
file://C:/1PRV.TXT"

I can connect, log on and change directories just fine.

Any help would be appreciated.

Thanks, Steve


If the FTP functions are being used on a remote server then you
cannot reference files on your hard drive.

--
Phil Roberts | Deedle Doot Doo Dee Dee | http://www.flatnet.net/

I could be wrong here, You could be right
Please forgive me I have sinned - Not on your life
But that's how you want me, But I'll never fear thee
Why you and not me? Tell me Holy Man
Jul 17 '05 #3

P: n/a
Can this awful thing be true?

On Sat, 23 Oct 2004 17:31:28 -0500, Phil Roberts
<ph**********@googlemail.com> wrote:
se******@swbell.net treated the lovely people of comp.lang.php
with the following stuff:
I am just trying a simple up load of a file on my hard drive to
my ftp site.

$source_file="file://C:/1PRV.TXT";

I get the error "remote host file access not supported,
file://C:/1PRV.TXT"

I can connect, log on and change directories just fine.

Any help would be appreciated.

Thanks, Steve


If the FTP functions are being used on a remote server then you
cannot reference files on your hard drive.

--
Phil Roberts | Deedle Doot Doo Dee Dee | http://www.flatnet.net/

I could be wrong here, You could be right
Please forgive me I have sinned - Not on your life
But that's how you want me, But I'll never fear thee
Why you and not me? Tell me Holy Man


Jul 17 '05 #4

P: n/a
se******@swbell.net wrote:
Can this awful thing be true?


Read this interesting article on web-based FTP with PHP:

http://www.raditha.com/php/ftp/

HTH
Markus
Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.