473,320 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 3271
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: balzano_1 | last post by:
Hi, im trying to upload a file from a client (windows) to an ftp server (linux), i deciede to use some of php`s functions to connect and authenticate etc.. i only wish to put a file on the server,...
5
by: tripwater | last post by:
Hello, I am having problems with the ftp_put() function. I can login via shell prompt. Does anyone know why the ftp_put() function may not work? I went to the php site and followed the...
3
by: J Poirier | last post by:
Hi All, I'm hoping that someone might have some pointers or examples on how to proceed with a solution to the following problem: A test application, which produces a trace file, is being run...
1
by: Daniel | last post by:
when writing out a file from .net, when is the file created? after the bytes are all written to the hard drive or before the bytes are written to the hard drive?
16
by: Otie | last post by:
Hi, Is there a way for VB5 to determine exactly where on a hard drive a .exe file is stored upon the .exe file's first copying to the hard drive? What I need to know is the exact hard drive...
3
by: empiresolutions | last post by:
ftp_put() is not working. this is what i have. $host = "www.site.com"; $ftp_user_name = "username"; $ftp_user_pass = "password"; // declair files $remote_file = "ITS_BLI_0".$_POST.".csv";...
3
by: A_Republican | last post by:
I am interested in writing my own secure file deletion program. I want to be able to read and write to my hard drive directly. My application will seach my hard drive for all locations marked for...
12
by: benjamin.krulewitch | last post by:
I'm debugging an issue with a C program that causes the computer to crash, and I'm attempting to log information immediately before the crash occurs. I us my BKprintLog function (see below) to...
0
by: sushil | last post by:
Hello Frnds, I am getting problem in uploading file from php script. The error is : Code - $upload = ftp_put($conn_id,$filemax,$src,FTP_BINARY); Output - Resource id...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.