ankur0101 Posted June 19, 2009 Share Posted June 19, 2009 Hi friends, I gotta Wifi router Netgear WGR614v7. I can modify its configs and settings by logging to 192.168.1.1 Its a router internet setup website. In this case , a Web Page accesses Wifi Hardware such as restarting etc. How can I do this for my computer using PHP ? From remote Location I have Dedicated IP address, I got Windows XP Prof. I have installed XAMPP. I know control panels like WHM, lxadmin , direct admin performs same thing mostly on linux. How can I make it on windows with my custom application ? First of all, Is it possible ? Quote Link to comment https://forums.phpfreaks.com/topic/162927-how-to-access-hardware-compuetr-by-php/ Share on other sites More sharing options...
RussellReal Posted June 19, 2009 Share Posted June 19, 2009 system exec shell_exec Quote Link to comment https://forums.phpfreaks.com/topic/162927-how-to-access-hardware-compuetr-by-php/#findComment-859638 Share on other sites More sharing options...
ankur0101 Posted June 19, 2009 Author Share Posted June 19, 2009 system exec shell_exec Thank You Sir, But I have never heard about this. Where did you find this ? Can You give me some sample coding which will restart my computer ? I want to see how it works Quote Link to comment https://forums.phpfreaks.com/topic/162927-how-to-access-hardware-compuetr-by-php/#findComment-859639 Share on other sites More sharing options...
RussellReal Posted June 19, 2009 Share Posted June 19, 2009 exec('shutdown -r -f'); will force all files to be closed, and restart the computer Quote Link to comment https://forums.phpfreaks.com/topic/162927-how-to-access-hardware-compuetr-by-php/#findComment-859641 Share on other sites More sharing options...
ankur0101 Posted June 19, 2009 Author Share Posted June 19, 2009 WOw Thats amazing, I never thought about it Great Sir Quote Link to comment https://forums.phpfreaks.com/topic/162927-how-to-access-hardware-compuetr-by-php/#findComment-859645 Share on other sites More sharing options...
ankur0101 Posted June 19, 2009 Author Share Posted June 19, 2009 Now I am trying to shut down my PC by My NOkia N80 phone Quote Link to comment https://forums.phpfreaks.com/topic/162927-how-to-access-hardware-compuetr-by-php/#findComment-859646 Share on other sites More sharing options...
ankur0101 Posted June 19, 2009 Author Share Posted June 19, 2009 Now I am trying to shut down my PC by My NOkia N80 phone Oh my God, it worked. I restarted my computer from my mobile phone NOkia n80. How can I turn off monitor ? Like If there is no activity for 1 minute, monitor will turn off and if I press 'Esc' or moves mouse, then it will turn on. How to do that ? Quote Link to comment https://forums.phpfreaks.com/topic/162927-how-to-access-hardware-compuetr-by-php/#findComment-859651 Share on other sites More sharing options...
ankur0101 Posted June 20, 2009 Author Share Posted June 20, 2009 Hello ....... Is anybody here ? Quote Link to comment https://forums.phpfreaks.com/topic/162927-how-to-access-hardware-compuetr-by-php/#findComment-860012 Share on other sites More sharing options...
DarkSuperHero Posted June 20, 2009 Share Posted June 20, 2009 you can probably find answers to many of your command line questions here: http://technet.microsoft.com/en-us/library/cc778084.aspx Quote Link to comment https://forums.phpfreaks.com/topic/162927-how-to-access-hardware-compuetr-by-php/#findComment-860020 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.