WordPress Cron Written on January 14, 2010, by admin.
How to call some function after a particular interval of time in a wordpress below is the answer :
WordPress has its own cron to automatically and scheduled run your tash. Therefore WordPress provides several functions to use the cron.
As default, WordPress can handle 3 time keys, which you can call with the function wp_schedule_event.
wp_schedule_event( time(), [...]
contact Written on January 12, 2010, by admin.
Send Me Teaser :–>
Your Name(required)
Email(valid email required)
Message
cforms contact form by delicious:days
Url rewriterule using htaccess Written on January 12, 2010, by admin.
The structure of a RewriteRule
RewriteRule Pattern Substitution [OptionalFlags]
The general structure of a RewriteRule is fairly simple if you already understand regular expressions. This article isn’t intended to be a tutorial about regular expressions though – there are already plenty of those available. RewriteRules are [...]
Get geo location using ip Written on January 11, 2010, by admin.
Why Geolocation?
The benefits of geolocation may sound complex, but a simple example may help illustrate the possibilities. Consider a traveling businessman currently on the road to San Francisco. After checking into his hotel, he pulls out his laptop and hops onto the wireless Internet access point provided by the hotel. He opens his chat program [...]
My Photos Written on August 3, 2009, by admin.
Fetch google news based on the zip code (php) Written on February 7, 2009, by admin.
Get google News based on the Rssfeed provided by google
<?php
$zip=”12345″;
$url=”http://news.google.com/news?geo=”.$zip.”&scoring=n&output=atom”;
$ch = curl_init(); // initialize curl handle
curl_setopt($ch, CURLOPT_URL,$url); // the url to fetch the data
curl_setopt($ch, CURLOPT_FAILONERROR, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);// allow redirects
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // return into a variable
$result = curl_exec($ch); // run the whole process
$fpw = fopen(‘news.xml’,’w’);
$write = fwrite($fpw,$result);
$xmlDoc = new DOMDocument();
$xmlDoc->load( ‘ news.xml’ );
$searchTitle = $xmlDoc->getElementsByTagName( [...]
Google News Api Written on February 7, 2009, by admin.
Get google News based on the Rssfeed provided by google
<?php
$zip=”12345″;
$url=”http://news.google.com/news?geo=”.$zip.”&scoring=n&output=atom”;
$ch = curl_init(); // initialize curl handle
curl_setopt($ch, CURLOPT_URL,$url); // the url to fetch the data
curl_setopt($ch, CURLOPT_FAILONERROR, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);// allow redirects
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // return into a variable
$result = curl_exec($ch); // run the whole process
$fpw = fopen(‘news.xml’,’w’);
$write = fwrite($fpw,$result);
$xmlDoc = new DOMDocument();
$xmlDoc->load( ‘ news.xml’ );
$searchTitle = $xmlDoc->getElementsByTagName( [...]
Download Wordpress Written on February 7, 2009, by admin.
The latest stable release of WordPress (Version 2.7) is available in two formats from the links to your right. If you have no idea what to do with this download, we recommend signing up with one of our web hosting partners that offers a one click install of WordPress or getting a free account on [...]
Wordpress installation Written on February 7, 2009, by admin.
New To WordPress – Where to Start
If you are new to WordPress and you’re worried about where to start, you’ve come to the right place! Here is a very simple step-by-step plan for getting started with WordPress. Please remember, if you need help along the way, plenty of options for assistance are listed in this [...]
Get Text Between Tags Written on February 6, 2009, by admin.
DO NOT USE REGEX TO PARSE HTML
By using regular expressions with the preg_match() or preg_match_all() functions, the parse is made to work extremely hard as PHP loops over and over the text to find matches. By using the DOM functions the speed is increased dramatically and parsing is much cleaner. This example shows how it [...]


