Tuesday 3 July 2012

Shutdown your PC remotely using Mobile


Things that you require is:

1.SERVER SETUP

We’ll use XAMPP  to set up the server. Believe me it is too easy.
Download the available package of xampp (installer or zip archive).

Now,follow the instruction given on their site to install the server.Actually installation is just unzipping the archive to a directory.The installation will take just around 2 minute.

2.PHP code

After installing XAMPP, just open up XAMPP directory.Then you will locate htdocs folder.Open that and create a new directory/folder.You can name it anything you want.Suppose the name of the new folder is shutdown.

Open the newly created folder shutdown and create a new file with name index.php (.php extension is necessary).

Now open up index.php file and place the nice little code if you run windows.

echo 'Shutting down';
exec("shutdown -s -t 30"); //30 means shutdown after 30 seconds
?>


3.Creating URL

http://YOUR-IP-ADDRESS/shutdown/

To find out your ip address just visit any site like http://checkmyip.com/.

4. A GPRS enabled mobile handset with active data connection.

That’s it. Now you visit that link from your mobile phone to shut down the computer.



                                                   

0 comments:

Post a Comment

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Lady Gaga, Salman Khan