note 86924 added to function.ftp-get
| From: | w dot danford at electronics-software dot com | Date: | Mon, 10 Nov 2008 22:06:59 +0000 |
| Subject: | note 86924 added to function.ftp-get | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-146368@lists.php.net to get a copy of this message | ||
A subtle issue with the ftp_get() function. The second param, string $local_file, is a file name on
the SERVER running the php script. It is NOT a file on the client machine running the browser. I
erroneously tried to use this ftp to download a file from my site to my local system. I entered the
full path starting with the drive letter ("h:/...") on a system running WIN XP and kept
getting a failure of unable to open (destination) file. Only after just putting in a file name with
no pathing did I see where the file was written. It was in the directory on my site where the php
script is located (hosting is managed shared LAMP server which supports multiple url's, GoDaddy
hosting).
----
Server IP: 69.147.83.197
Probable Submitter: 70.249.41.237
----
Manual Page -- http://www.php.net/manual/en/function.ftp-get.php
Edit -- https://master.php.net/note/edit/86924
Del: integrated -- https://master.php.net/note/delete/86924/integrated
Del: useless -- https://master.php.net/note/delete/86924/useless
Del: bad code -- https://master.php.net/note/delete/86924/bad+code
Del: spam -- https://master.php.net/note/delete/86924/spam
Del: non-english -- https://master.php.net/note/delete/86924/non-english
Del: in docs -- https://master.php.net/note/delete/86924/in+docs
Del: other reasons-- https://master.php.net/note/delete/86924
Reject -- https://master.php.net/note/reject/86924
Search -- https://master.php.net/manage/user-notes.php