Posts

SEARCH ENGINE OPTIMIZATION METHODS

  Secrets & Strategies on Blogging A blogger can increase blog traffic with the help of few strategies. If you like to increase traffic and rank of blog then you should keep few things always in your mind. Secrets and Strategies of Blogging 1.     Updated Content – You must write updated news articles for blogs. Your content should be having good English. Always remember content is king for blogging. 2.     Social Bookmarking – After writing one article, go for submitting your article into social media places. Remember always, that your title and description should not same. Write another description and title for bookmarkting. This is important strategies on blogging . 3.     Keyword Stuff – Your blog should not be having huge keywords. Your blog should be natural. After writing blog, suggest keyword for your post. You should imagine topic before writing then after writing, you should select tags. 4.   ...

Get country city Location from IP address

This is a sample in PHP of how you can integrate the answer in your application : function locateIp($ip){ $d = file_get_contents("http://www.ipinfodb.com/ip_query.php?ip=$ip&output=xml"); //Use backup server if cannot make a connection if (!$d){ $backup = file_get_contents("http://backup.ipinfodb.com/ip_query.php?ip=$ip&output=xml"); $answer = new SimpleXMLElement($backup); if (!$backup) return false; // Failed to open connection }else{ $answer = new SimpleXMLElement($d); } $country_code = $answer->CountryCode; $country_name = $answer->CountryName; $region_name = $answer->RegionName; $city = $answer->City; $zippostalcode = $answer->ZipPostalCode; $latitude = $answer->Latitude; $longitude = $answer->Longitude; $timezone = $answer->Timezone; $gmtoffset = $answer->Gmtoffset; $dstoffset = $answer->Dstoffset; //Return the data as ...

add twitter digg reddit orkut facebook stumbleupon button to blogspot

Image
Hi friends You can Add These buttons by following these steps: Login to your blogger account Go to Layout section and go Edit HTML tab Click on expand widget template template. Find  following code <div class='post-header-line-1'/> or Paste any one of the following codes below the if you want button to appear button below the post or above the   if you want button to appear above post.  Digg <script type='text/javascript'> digg_url="<data:post.url/>"; </script> <script src='http://digg.com/tools/diggthis.js' type='text/javascript'/> Tweet <script type='text/javascript'> tweetmeme_url = '<data:post.url/>'; </script> <script src='http://tweetmeme.com/i/scripts/button.js' type='text/javascript'/> reddit <script>reddit_url='<data:post.url/>'</script> <script>reddit_title='<data...

contact me

Wish to contact me? Use the form below or simply drop in an email on my email address, ankitchauhan22@gmail.com * Required

search drop down list onmouseover event

Image
Hi friends Here you can see the code to get dropdown list onmouseover event using javascript <script type="text/javascript"> var timeout    = 100; var closetimer    = 0; var ddmenuitem    = 0; function mopen(id) {     // cancel close timer     mcancelclosetime();     // close old layer     if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';     // get new layer and show it     ddmenuitem = document.getElementById(id);     if(ddmenuitem)         ddmenuitem.style.visibility = 'visible'; } function mclose() {     if(ddmenuitem) ddmenuitem.style.visibility = 'hidden'; } function mclosetime() {     closetimer = window.setTimeout(mclose, timeout); } function mcancelclosetime() {     if(closetimer)     {   ...

get searching data from google on localhost

Hi friends, Try this to get search data on your local host. <?php $text = $_POST['search']; ?> <form action="searchbygoogle.php" method="POST"> <input name="search" type="text" value="<?= $text;?>" /> <input type="submit" value="Search" /> </form> if ($_POST['search']==""){ echo "No search data found"; } else{ $query = file_get_contents("http://www.google.com/search?q=".urlencode($_POST['search'])."&hl=en&ie=UTF-8&filter=2"); //needs to be added with more queries $replace_array = array('/\n/','/(.*)<\/head>/','/(.*) /','/ (.*)/'); //pregraplacing unneeded parts $results = preg_replace($replace_array, '', $query); echo $results; } ?> </div>

export to excel in php

Image
Hi friends Excel files are great for many things. It might though be a little bit tricky to generate them on the fly with php. Therefor I will guide you exactly how to do it, quick and simple. Excel is a very useful format for lots of purposes. For example, exporting stats, member lists to hand over to economy department etc.   <?php echo "Export Data Using PHP"; echo ' <form action="'. $phpself.'"> '; echo '<input name="submit" type="submit" value="Export" /> </form> '; ?> } else { $dbc = mysql_connect("localhost","root",""); mysql_select_db("test",$dbc); $contents="ID,Title,Visit\n"; $user_query = mysql_query('select id,title,visit from wallpaper'); while($row = mysql_fetch_array($user_query)) { $contents.=$row[0].","; $contents.=$row[1].","; $contents.=$row[2]."\n"; } ...