legohead6 Posted November 8, 2008 Share Posted November 8, 2008 Well, our school has a firewall, and currently i am just running Putty on my laptop and get around the firewall. this works great, but when my friends want to get in i have to login for them and set it up. what i am wonder is if i can somehow start a SSH connection(to the server the php is running on) with php, and then the user could connect to it in there internet explorer preferences(under proxy settings) could someone tell me if this is possible? if so point me in the right direction... Link to comment https://forums.phpfreaks.com/topic/131872-ssh-with-php/ Share on other sites More sharing options...
vicodin Posted November 8, 2008 Share Posted November 8, 2008 i dont think php has the ability to do so. Sounds like a job for Java or JavaScript. Link to comment https://forums.phpfreaks.com/topic/131872-ssh-with-php/#findComment-685097 Share on other sites More sharing options...
will35010 Posted November 8, 2008 Share Posted November 8, 2008 Well, our school has a firewall, and currently i am just running Putty on my laptop and get around the firewall. this works great, but when my friends want to get in i have to login for them and set it up. what i am wonder is if i can somehow start a SSH connection(to the server the php is running on) with php, and then the user could connect to it in there internet explorer preferences(under proxy settings) could someone tell me if this is possible? if so point me in the right direction... http://us3.php.net/exec Link to comment https://forums.phpfreaks.com/topic/131872-ssh-with-php/#findComment-685101 Share on other sites More sharing options...
legohead6 Posted November 8, 2008 Author Share Posted November 8, 2008 i have tried that, i cant get the program to actually start on the computer. i cant make anything start on the localusers computer from a php command... even if i could make a php command that opens notepad i would be happy tried this <?php $WshShell = new COM("WScript.Shell"); $oExec = $WshShell->Run("notepad.exe", 7, false); ?> and i get Fatal error: Cannot instantiate non-existent class: com in ******/proxy.php on line 2 Link to comment https://forums.phpfreaks.com/topic/131872-ssh-with-php/#findComment-685123 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.