... $stream = ssh($target,"ls -lR $path"); while(!feof($stream)){ $line = fgets($stream); /* write files in the database */ ... }
...
sorry i post my functions, this is the real code:
... $stream = ssh2_exec($target,"ls -lR $path"); while(!feof($stream)){ $line = fgets($stream); / write files in the database / ... }