PHP ftp_put source_file values

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

 



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