I am trying to understand if ftp_nlist() has limitations with displaying files.
Here is what I am using:
<?php
// set up basic connection
$conn_id = ftp_connect('ftp.mysite.com');
// login with username and password
$login_result = ftp_login($conn_id, 'user', 'password');
// get contents of the current directory
$contents = ftp_nlist($conn_id, ".");
// output $contents
var_dump($contents);
?>
It seems I can only see what is in the immediate directory. What if I want to see what's in a directory above?
I've tried replacing the '.' with /html, /html/, /home/html, /home/html/, and several more.
Is this function limited to only viewing what is in the immediate home folder?