From:             qadeer_ahmad at yahoo dot com
Operating system: windows 2000
PHP version:      4.3.9
PHP Bug Type:     FTP related
Bug description:  download file from server to local harddisk

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 bug report at http://bugs.php.net/?id=30338&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30338&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30338&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30338&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30338&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30338&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30338&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30338&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30338&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30338&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30338&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=30338&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=30338&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30338&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30338&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30338&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30338&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30338&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30338&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30338&r=mysqlcfg

Reply via email to