Top Menu

Here with the help of APPs you can track the ip. These details include Geographic location information (includes country, region/state, city, latitude, longitude and telephone area code.), <?php  $ip=$_SERVER["REMOTE_ADDR"]; $handle = fopen("http://api.ipinfodb.com/v3/ip-city/?key=5b32848aa72361c4efdef63111d6e3d9247e076891f5248eec0a5be1208993e6&ip=".$ip, 'r');$tt=fgets($handle, 4096);echo '<br>';list($statusCode, $statusMessage, $ipAddress,$countryCode,$countryName,$regionName,$cityName,$zipCode,$latitude,$longitude,$timeZone) = split(';', $tt);echo "Ip-Address->".$ipAddress;echo '<br>';echo "Country Name->".$countryName;echo '<br>';echo "Country Code->".str_ireplace('-', '', $countryCode);echo '<br>';echo "City Name->".str_ireplace('-', '', $cityName);fclose($handle);?> click here to demo

Make php counter Using PHP and a plain text file this has never been easier. The example below uses a flat-text database so no MySQL database is needed.  First, lets make a new php page and also a count.txt file with just 0 digit in it. Upload the count.txt file on your web server. Depending on server configuration you may…

php Util Classes Php connection util Classes Codecode: save file UtilClass.php<?phpclass UtilClass {    public $utilMySqlServerIP;    public $utilDB ;    public $utilUser;    public $utilPass;    public $utilLink,$utilIsMYSQLLinked,$utilIsDBConnected;    public static $utilTitle,$utilDescription,$utilKeywords,$utilAuthor;    public $utilAns;        public function __construct() {        $this->utilMySqlServerIP = "localhost";        $this->utilUser = "root";//"root";        $this->utilPass = "";//"";        $this->utilDB = "photo-gallery";        $this->utilAns=false;    }    /////////////////// Start SEO Functions ///////////////////////////////////////////////    public static…

Creating Paging using PHP and MySQL with classes Paging means showing your query result in multiple pages instead of just put them all in one long page.MySQL helps to generate paging by using LIMIT clause which will take two arguments. First argument as OFFSET and second argument how many records should be returned from the database.Below is a simple example…

How to create dive corner without image How to create  dive corner without image Here you make comer without image with the help of jQuery.  Code Here : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled Document</title><script language="JavaScript" src="jquery-1.6.js"></script><script language="JavaScript" src="jquery.corner.js"></script><script language="javascript">$('#divID').corner("10px");</script></head><body><div id="divID" style="width:300px; height:200px; background-color:#090;" >&nbsp;test round couner</div></body></html>Example   

I've been able to export any data from MySQL to a csv file.Export mysql data to excel in php Code here :<?php$topRow="<table border='1'>";$bottomRow="</table>";$columns="<tr><th>Name</th><th>Age</th><th>Phone/Mobile Number</th>";$columns.="</tr>";$data="";$i==1;////////////////////////////// you can also connect database. you fetch data and pass paramete on td tag fields. /////////////////////while($i<10){$nName="<tr><td>".str_replace('"', '""',"Jafar Khan")."</td>";$age="<td>".str_replace('"', '""',"24")."</td>";$phoneMobileNumber="<td>".str_replace('"', '""',"9451293997")."</td>";$line=$nName.$age.$phoneMobileNumber; $data.=$line;$i++ ;}$data = str_replace("r", "", ($topRow.$columns.$data.$bottomRow)); function exportToExcelUtil($filename,$data) {        header("Content-type: application/octet-stream");         header("Content-Disposition: attachment; filename=$filename");    …

How to validate url in java script How to validate url in java scripturl validation in java scripHow to validate url in java scriptThis function can be used for validating url function isURL(s) { var regexp = /http://[A-Za-z0-9.-]{3,}.[A-Za-z]{3}/; return regexp.test(s);}  <html><head></head><script language="javascript">function isURL(s) { var regexp = /http://[A-Za-z0-9.-]{3,}.[A-Za-z]{3}/; alert(regexp.test(s));}</script><body> <form> <input type="text" name="url" size="20" id="url"/> <input type="button" value="Validate"  onClick="javascript:isURL(document.getElementById('url').value);"/> </form></body></html>

Title Bar Scrolling Marquee Title Bar Scrolling Marquee Use the Title Bar Marquee/Scroller generator at the top of the page to automatically generate a scrolling title bar for your page.<html><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">        <title>Static Title</title>        <script src="http://code.jquery.com/jquery-1.6.2.min.js"></script>        <script src="jquery.marqueetitle.js"></script>        <script language="JavaScript" type="text/javascript">            $(document).ready(function() {                $(document).marqueeTitle({                    'message'     : ' Example Marquee Text (Jafar Khan 9451293997)',                    'time'      : 400                });           …

PHP script to delete thousands of jpgs I seen this query on guru.com  but I can not do the  bit this project. But  I done this task.  Client Requirement Hi, my webcam is uploading .jpg files to my shared webhost and I need you to create and install a php script that will delete all .jpg files in the public_html/cams/…

Close