Forum Moderators: coopster

Message Too Old, No Replies

Checking SSH send has worked

         

optik

4:28 pm on Jan 9, 2009 (gmt 0)

10+ Year Member



Hi

I am using the SSH2 extension to send files from an upload form to another server, it's all working fine but I want be able to check the file has uploaded ok and inform the user if there is a problem, the trouble is I can't use file_exists because the file is being moved to a location that is below the we root on a another server. The other catch is the check must be done right away not on a separate page so data is not added to the database.

Thanks

coopster

5:57 pm on Jan 9, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



When the user uploads the file to your server, PHP has all kinds of ways to monitor that the file uploaded successfully. I would recommend you start with the PHP manual page on Handling file uploads [php.net].