zab329 Posted July 20, 2007 Share Posted July 20, 2007 My title basically describes what I need to do. I need to send PHP code to an external box, and have it return the hardware specifications, including processor speed, memory, video card etc. I was wondering if this was possible. Thanks -Zach Quote Link to comment https://forums.phpfreaks.com/topic/61043-get-hardware-specfication-from-external-source-using-php/ Share on other sites More sharing options...
MadTechie Posted July 21, 2007 Share Posted July 21, 2007 PHP is a server side script.. so you can't maybe javascript (lol) Quote Link to comment https://forums.phpfreaks.com/topic/61043-get-hardware-specfication-from-external-source-using-php/#findComment-303787 Share on other sites More sharing options...
zab329 Posted July 21, 2007 Author Share Posted July 21, 2007 I have ways of sending PHP to the server. Let me explain. Its a gaming box. They allow us some access in order to control the servers. So, as I can send PHP script, is there a way to do it? Quote Link to comment https://forums.phpfreaks.com/topic/61043-get-hardware-specfication-from-external-source-using-php/#findComment-303927 Share on other sites More sharing options...
keeB Posted July 21, 2007 Share Posted July 21, 2007 Sure. I wrote an app in Python which listens on port 1985 for 'commands' Currently 2 commands are implemented: call, fork call exectes any OS level command and returns the STDOUT. Think 'dir' on windows. fork creates any system level process that the user can execute and returns the PID (Process ID) Using PHP I could send a packet to this port and get the response, thereby getting the information I need (if this is a linux box, the information would be available in /proc/) If you have any specific questions about this implementation, let me know Quote Link to comment https://forums.phpfreaks.com/topic/61043-get-hardware-specfication-from-external-source-using-php/#findComment-303935 Share on other sites More sharing options...
zab329 Posted July 23, 2007 Author Share Posted July 23, 2007 Can't send python, I am told it can't be done. Thanks for the time though. Quote Link to comment https://forums.phpfreaks.com/topic/61043-get-hardware-specfication-from-external-source-using-php/#findComment-305077 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.