I'm trying to feed a ftp_raw()
command's output to a file. More specifically, the command is ftp_raw( $ftpConn, 'LIST -al' );
and I want to write the filelist to a file, or at least show it to the console screen...
I mean, I'm doing a var_dump( ftp_raw( $ftpConn, 'LIST -al' ) );
and I'm correctly getting a response like this:
array(1) {
[0]=>
string(42) "150 Opening data connection for file list."
}
but I also want to get the filelist itself somehow.
Can you please help me with this?