ok here is an update.
to test if i can connect to my server via ssh2 im just running this little script but every time i open the file.php my cpu usage goes to 50% (taskmanager says httpd.exe) even when i close the window, when i run it again it goes to 100%.
what am i doing wrong? ip of server, username and password are all correct
the error message im getting is:
Warning: ssh2_connect() [function.ssh2-connect]: Unable to connect to 172.19.1.38 on port 22 in C:\www\webroot\test\test.php on line 2
Warning: ssh2_connect() [function.ssh2-connect]: Unable to connect to 172.19.1.38 in C:\www\webroot\test\test.php on line 2
Fatal error: Maximum execution time of 30 seconds exceeded in C:\www\webroot\test\test.php on line 2