Skip to content

Instantly share code, notes, and snippets.

View byjujohn's full-sized avatar

Byju John byjujohn

View GitHub Profile
@byjujohn
byjujohn / ipaddress.php
Created July 13, 2012 09:07
Get the IP address
<?php
$ipadrs = $_SERVER['REMOTE_ADDR'];
echo $ipadrs;
?>
<?php
echo "Connecting to MySQL Server ... ";
mysql_connect(
"localhost",
"admin",
"pass123")
or die(mysql_error());
echo "[OK]<br />";