468,296 Members | 1,304 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,296 developers. It's quick & easy.

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

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
4 3093
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
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
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
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.

Similar topics

1 post views Thread by balzano_1 | last post: by
5 posts views Thread by tripwater | last post: by
3 posts views Thread by J Poirier | last post: by
3 posts views Thread by A_Republican | last post: by
12 posts views Thread by benjamin.krulewitch | last post: by
reply views Thread by sushil | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.