ID:               30338
 Updated by:       [EMAIL PROTECTED]
 Reported By:      qadeer_ahmad at yahoo dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         FTP related
 Operating System: windows 2000
 PHP Version:      4.3.9
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

.


Previous Comments:
------------------------------------------------------------------------

[2004-10-06 15:42:46] qadeer_ahmad at yahoo dot com

Description:
------------
i am trying to download a file from my webserver but it did not working
and giving error

before this script i connect to the ftp server and it connected.

Reproduce code:
---------------
<?
$local_file = 'c:/aaa.zip';
$server_file = 'www/download/aaa.zip';
if (ftp_get($conn_id, $local_file, $server_file, FTP_BINARY)) {
   echo "Successfully written to $local_file\n";
} else {
   echo "There was a problem\n";
   exit();
}
if ($conn_id) {
   ftp_close($conn_id);
}
?>

Expected result:
----------------
i am trying to download a file naming aaa.zip which is present in
'www/download/aaa.zip' i want to download this file in my local hard
drive path c:/aaa.zip

NOTE: I also give this path as this 

$local_file = 'c:\aaa.zip';
$server_file = 'www/download/aaa.zip';

no error show also no file copy in my drive c:
but when i give this address.
$local_file = 'c:/aaa.zip';
$server_file = 'www/download/aaa.zip';
it give error which i write below

Actual result:
--------------
error is::

Warning: ftp_get(): Error opening c:/aaa.zip in
/home/comsdev/public_html/ftp2.php on line 27
There was a problem 




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=30338&edit=1

Reply via email to