Re: PHP ftp_put source_file values

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am not sure how PHP work with this, but maybe when you do
a ftp put with only the file name your file will end up in the
virtual root directory of your ftp or www site. This would then
imply that you will not be able to refer to a physical hard
drive partition on the system, but you will need refer to the
virtual directory structure of the ftp or www site you are
targeting with the command.

On Wed, 2003-12-03 at 12:44, Brent wrote:
> Hi all,
> 
> The following statement.
> $upload = ftp_put($conn_id,'test123.123','c:\test123.txt', FTP_BINARY);
> does not work. I'm trying to send a file on my local C drive to the
> web\ftp server!! It works fine if I put.
> $upload = ftp_put($conn_id,'test123.123','test123.txt', FTP_BINARY);
> and make sure the test123.txt file is on the web\ftp server in the same dir
> as the code.
> The command puts the test123.123 file in the root of the web\ftp server.
> I could have done that using the copy command however!!!
> But I cant seem to send one from my c drive to the server. I have tried
> c:/test123.txt and c:\\test123.txt etc thanks to support from this group
> but didn't seem to help. Does anyone know wot i'm on about!!!
> hope so :)
> 
> Brent.

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux