note 79881 added to function.ftp-put

From: Date: Mon, 17 Dec 2007 20:01:29 +0000
Subject: note 79881 added to function.ftp-put
Groups: php.notes 
Request: Send a blank email to php-notes+get-133737@lists.php.net to get a copy of this message
If you are moving files from one folder to another inside the same server, the "local file" field has to be indicated in a relative path according to the location of the script running the ftp_put() function. For example, your function is running on: /public_html/do_ftp.php and you want to move /public_html/products.php to /public_html/backup/products.php The correct way to build the function would be: ftp_put($ftp_id, '/public_html/backup/products.php', 'products.php', FTP_ASCII); After having headaches for 2 days trying to make this function work using absolute paths in both fields, I finally found the right way to use it. I hope it helps someone. Excuse my english, it isn't my native language. ---- Server IP: 201.243.173.3 Probable Submitter: 190.39.143.46 ---- Manual Page -- http://www.php.net/manual/en/function.ftp-put.php Edit -- https://master.php.net/note/edit/79881 Del: integrated -- https://master.php.net/note/delete/79881/integrated Del: useless -- https://master.php.net/note/delete/79881/useless Del: bad code -- https://master.php.net/note/delete/79881/bad+code Del: spam -- https://master.php.net/note/delete/79881/spam Del: non-english -- https://master.php.net/note/delete/79881/non-english Del: in docs -- https://master.php.net/note/delete/79881/in+docs Del: other reasons-- https://master.php.net/note/delete/79881 Reject -- https://master.php.net/note/reject/79881 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#133737) next »