I’m using ssh2_scp_send to send one file from server1 to server2.
It works almost 80% of the times, but sometimes fails and I can’t find any log message and i don’t know why!
the command only return one bool value saying if it was sucessfull.
Where can I find some log message or any of you had one similar problem?
Thanks,
Pedro
@pedro
The path to the PHP error log is defined with “error_log” in PHP.ini. In your PHP script you should display all errors during development.
You can also choose to show errors in the PHP output.
There is an alternative shown on:
http://php.oregonstate.edu/manual/en/function.ssh2-scp-send.php#82927
That may give you more flexible error handling.