|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
A high performance database engine using optimized data access for all development environments including Delphi, Visual Studio .NET, Visual Basic, Visual FoxPro. and more. Learn More |
|
#1
|
|||
|
|||
|
FTP with PHP problem
Hi,
Im having a problem using the FTP commands within a simple script. All i want to do is upload a text file (test.txt) to my remote PHP server, and i cant seem to get it to work. Here is the script im using, and it errors on the Upload line. Do I have to state the directory of the file to send? Since its just on c:\? Any help would be much appreciated. Regards, Ben. <? // connect to FTP server $conn = ftp_connect("hostname.com"); // log in with username and password ftp_login($conn, "username", "password"); // upload ftp_put($conn, "test.text","test.txt", FTP_ASCII); // close connection ftp_quit($conn); ?> |
|
#2
|
|||
|
|||
|
correction
Sorry, theres a typo in the upload line, but it still does not work.
It should be:- // upload ftp_put($conn, "test.txt","test.txt", FTP_ASCII); Ben. |
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > FTP with PHP problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|