|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-10-26 22:52 UTC] cdburgess at gmail dot com
[2011-10-27 02:31 UTC] cdburgess at gmail dot com
[2011-10-28 15:32 UTC] cdburgess at gmail dot com
[2011-10-28 15:33 UTC] cdburgess at gmail dot com
[2011-10-28 15:33 UTC] cdburgess at gmail dot com
-Status: Open
+Status: Closed
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 19:00:02 2025 UTC |
Description: ------------ When running this script on a linux box, it works as expected. CURLOPT_FTPLISTONLY will work as well. However, when trying to run this from a Mac, it does not return anything. Test script: --------------- <?php $ftp_server = 'DOMAIN'; $ftp_user_name = 'USER'; $ftp_user_pass = 'PASS'; $conn_id = ftp_connect($ftp_server) or die("Couldn't connect to $ftp_server"); ftp_pasv($conn_id, true); ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); $dir = ftp_pwd($conn_id); $list = ftp_nlist($conn_id, $dir); print_r($list); ftp_close($conn_id); ?> Expected result: ---------------- I would expect to see a list of files location on the FTP server.