|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-11-04 15:43 UTC] sanjib dot biswas at ieee dot org
[2006-11-04 15:56 UTC] pajoye@php.net
[2006-11-04 16:15 UTC] sanjib dot biswas at ieee dot org
[2006-11-07 14:45 UTC] bjori@php.net
[2006-11-15 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 10:00:01 2025 UTC |
Description: ------------ Although from the php page we are able to connect to a secure ftp server. But change directory (cd/chdir) command inside a php page to a secure ftp server always fails. Reproduce code: --------------- <?php // set up basic connection $conn_id = ftp_ssl_connect($ftp_server); // login with username and password $login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); // check connection if ((!$conn_id) || (!$login_result)) { die("FTP connection has failed !"); } echo "Current directory: " . ftp_pwd($conn_id) . "\n"; // try to change the directory to somedir if (ftp_chdir($conn_id, "somedir")) { echo "Current directory is now: " . ftp_pwd($conn_id) . "\n"; } else { echo "Couldn't change directory\n"; } // close the connection ftp_close($conn_id); ?> Expected result: ---------------- I should get: Current directory: \ Current directory is now: \somedir Actual result: -------------- I get: Current directory: \ Couldn't change directory