I got a realy strange PHP FTP problem.
<?php
// set up basic connection
$conn_id = ftp_connect("server");
// login with username and password
$login_result = ftp_login($conn_id, "user", "pass");
// get the file list for /
$buff = ftp_rawlist($conn_id, '.');
// close the connection
ftp_close($conn_id);
// output the buffer
var_dump($buff);
?>
That code works on some servers, but not all. WHY?!?! 😕
I have also tried to add ftp_pasv($conn_id, true);
But that don't work either.
HELP 😕
Both the connect and login are correct, I have testet it:
if($conn_id and $login_result)