Connect any laptop to Internet with cell phone

Connect any laptop to Internet with cell phone using bluetooth.

1. First, turn on your laptop and phone bluetooth.
2. Go to “Set Up a Connection or Network” and choose “Connect to a Bluetooth personal area network (PAN)”.
3. Click on the cell phone (if this is don’t show up, click on “Add a device”)

After this my windows 7 scan and download the driver, then, reboot.
After reboot go to, Bluetooth Devices driver, click on your cell phone, the control panel is open and you see the option to connect to internet, is very easy and it’s work wih any laptop and cell phone who have bluetooth.

Written by Tudor in: Windows |

Shutdown your computer using PHP Linux / Windows

To shutdown your computer using PHP in Linux and Windows, we need a script and the command to shutdown the system. The script from down, is with password protect, all you need to do is to change “YourPassword” with your password, and done.

< ?php
$password = "YourPassword";  // Modify Password to suit for access, Max 10 Char.
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<style type="text/css">
P { FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: Verdana, Tahoma, Arial}
TD { FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: Verdana, Tahoma, Arial}
< ?php 
// If password is valid let the user get access
if (isset($_POST["password"]) &amp;&amp; ($_POST["password"]=="$password")) {

    shell_exec("sudo /sbin/shutdown -h now");



PHP: About functions

The heart of PHP programming is, arguably, the function. The ability to encapsulate any piece of code in a way that it can be called again and again is invaluable.

Basic syntax

Function syntax is, at its most basic, very simple. To create a new function, we simply use the keyword function, followed by an indentifier, a pair of parentheses and braces:

function name () {}

This is a function:

function hello()
echo “Hello World”;
// Displays “Hello World”

Note, however, that even if you don’t return a value, PHP will still cause your function to return NULL.
Functions can also be declared so that they return by reference; this allows you to return a variable as the result of the function, instead of a copy (returning a copy is the default for every data type except objects). Typically, this is used for things like resources (like database connections) and when implementing the Factory pattern.
However, there is one caveat: you must return a variable, you cannot return an expression by reference, or use an empty return statement to force a NULL return value:

Written by Tudor in: PHP |

© The-Files.ro 2010 - 2014

Log in / Register