PHP SCP Library
I have a problem with a script that I am building now.
I'm trying to make the application (built entirely using PHP) compress the contents of a folder (via linux TAR or windows ZIP) but when it comes to moving the file, via SCP (I do not use FTP) I can't point the best library to do so.
The archive is about 100 - 500 MB in size.
First, there is PHPSecLib which is a great, pure PHP implementation and does a terrific job with the SSH part, however, when it comes to SCP, it's very very slow at transferring the file and hogs the system's CPU and also loads the entire file in memory.
Secondly, there's the PHP ssh2_scp_send which is truly remarkable, handling huge files with very low memory and CPU usage and also sending at the full speed of the connection. However, this requires users to install libssh2-php which isn't an option for shared accounts.
Do you have any recommendations about another library that I can implements?
I was thinking to first check for the ssh2_* functions and if available use that and if not, use the PHPSecLib, but most of the people will end up using the second option which makes the server slow, unresponsive and with large files, times out or exceeds memory limit (physical memory limits or, on shared accounts, forced ones by sysadmins).
Thanks!
-
ovnign -
[ 1 ] Thanks
{{ DiscussionBoard.errors[6626871].message }} -
-
TopicSpan -
Thanks
SignatureDon't lose users!Grab our full-page UltraCache system that instantly speeds up any PHP website!{{ DiscussionBoard.errors[6630953].message }} -
-
narcispap -
Thanks
{{ DiscussionBoard.errors[6637564].message }} -
-
ovnign -
Thanks
{{ DiscussionBoard.errors[6639880].message }} -
-
narcispap -
Thanks
{{ DiscussionBoard.errors[6649348].message }} -
-
jaasmit -
Thanks
{{ DiscussionBoard.errors[6652216].message }} -
-
ovnign -
Thanks
{{ DiscussionBoard.errors[6663546].message }} -
-
narcispap -
Thanks
{{ DiscussionBoard.errors[6666446].message }} -