Re: Trouble with ftp_get function

From: Date: Thu, 11 Mar 2004 10:07:37 +0000
Subject: Re: Trouble with ftp_get function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-180123@lists.php.net to get a copy of this message
If you are using double quotes teh file name should be c:\\thefile.txt Benjamin wrote:
I'm sorry if this has already been asked before... I am trying to make a small ftp app using this line to download files: if( !ftp_get( $conn_id , "C:\thefile.txt" , $HTTP_GET_VARS['file'] , FTP_BINARY ) ) $error = true; I know I have a connection, and $HTTP_GET_VARS['file'] is the path of the file I want to download. I always get this error: ftp_get(): Error opening C:/thefile.txt in /main.php on line 97 I have searched all over trying numerous different scripts to try and figure out what is wrong. Does anybody have any ideas? thanks, Benjamin
-- Raditha Dissanayake. --------------------------------------------------------------- http://www.radinks.com/upload/ Drag and Drop Upload thousands of files and folders in a single transfer. (HTTP or FTP)

« previous php.general (#180123) next »