<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1407993523856846079</id><updated>2026-09-20T12:40:15.266+01:00</updated><category term="PHP"/><category term="How to"/><category term="Linux"/><category term="Ubuntu"/><category term="Apache"/><category term="MYSQL"/><category term="Facebook"/><category term="IT Service Management"/><category term="ITIL"/><category term="XML"/><category term="JQuery"/><category term="JSON"/><category term="Jailbreak"/><category term="Javascript"/><category term="Smarty"/><category term="Unlock"/><category term="ecommerce"/><category term="iPhone"/><title type='text'>A Tech Blog about PHP, Javascript, JQuery, Phone Unlocks, Apps and IT Service Management</title><subtitle type='html'>I am a hard working and goal-driven individual who loves to face daily challenges. I&#39;ve been programming for 4 years, and had a chance to experience a variety of programming languages and development tools ranging from PHP, MYSQL, AJAX, OOP, MVC to C/C++ and scripting languages such as JavaScript, jQuery, AJAX and so on.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gubhaju-phpwizard.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Manny</name><uri>http://www.blogger.com/profile/12227417960255585387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>17</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><blogger:adultContent>true</blogger:adultContent><entry><id>tag:blogger.com,1999:blog-1407993523856846079.post-6446937731391765412</id><published>2013-06-10T15:25:00.001+01:00</published><updated>2013-06-14T16:04:57.301+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache"/><category scheme="http://www.blogger.com/atom/ns#" term="How to"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>How to create a virtual host in ubuntu?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
When you are used to running your websites in windows envirnment, it can be a bit of pain to suddenly switch in to linux. This post will guide you towards setting up a virtual host in ubuntu.&lt;br /&gt;
&lt;br /&gt;
1. Enable the virual host module and restart apache.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #666666;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: white;&quot;&gt;&lt;span style=&quot;background-color: #666666;&quot;&gt; sudo a2enmod vhost_alias&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&lt;span style=&quot;background-color: #666666;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sudo /etc/init.d/apache2 restart &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2.&amp;nbsp; Goto to /etc/apache2/sites-available directory and create a copy of the default file with the name of&amp;nbsp; the virtual host you would like to create. In this case the virutal host is &quot;my-first-host.com&quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&lt;span style=&quot;background-color: #666666;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cd /etc/apache2/sites-available/&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&lt;span style=&quot;background-color: #666666;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sudo cp default my-first-host.com&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
3. Customize the my-first-host.com file and point the target folder to your content directory. If the content directory is /var/www/first_host, the file will has to look something like this:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&lt;span style=&quot;background-color: #666666;&quot;&gt;&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ServerAdmin webmaster@localhost&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DocumentRoot /var/www/first_host&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Directory /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Options FollowSymLinks&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AllowOverride None&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Directory&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Directory /var/www/first_host/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Options Indexes FollowSymLinks MultiViews&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AllowOverride None&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Order allow,deny&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allow from all&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Directory&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Directory &quot;/usr/lib/cgi-bin&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AllowOverride None&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Order allow,deny&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Allow from all&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Directory&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ErrorLog /var/log/apache2/error.log&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Possible values include: debug, info, notice, warn, error, crit,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # alert, emerg.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LogLevel warn&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomLog /var/log/apache2/access.log combined&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alias /doc/ &quot;/usr/share/doc/&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Directory &quot;/usr/share/doc/&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Options Indexes MultiViews FollowSymLinks&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AllowOverride None&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Order deny,allow&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Deny from all&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Allow from 127.0.0.0/255.0.0.0 ::1/128&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Directory&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/VirtualHost&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
4. Enable the virtual host setup file and reload apache.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&lt;span style=&quot;background-color: #666666;&quot;&gt;&amp;nbsp;&amp;nbsp; sudo a2ensite my-first-host.com&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&lt;span style=&quot;background-color: #666666;&quot;&gt;&amp;nbsp;&amp;nbsp; sudo /etc/init.d/apache2 reload&lt;/span&gt;&lt;/span&gt; &lt;br /&gt;
&lt;br /&gt;
5. You are almost&amp;nbsp; done now. The only thing left is point your virtual site to the right IP address. In this case you will need to point it to your local IP which is 127.0.0.1. Edit the /etc/hosts file by typing&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&lt;span style=&quot;background-color: #666666;&quot;&gt;sudo gedit /etc/hosts&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
6. Add the IP 127.0.0.1 to your virtual site you have created. The file should look like below:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&lt;span style=&quot;background-color: #666666;&quot;&gt;127.0.0.1&amp;nbsp;&amp;nbsp; localhost&lt;br /&gt;127.0.0.1&amp;nbsp;&amp;nbsp; my-first-host.com&lt;br /&gt;127.0.1.1&amp;nbsp;&amp;nbsp; manishpc-vm&lt;br /&gt;&lt;br /&gt;# The following lines are desirable for IPv6 capable hosts&lt;br /&gt;::1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; localhost ip6-localhost ip6-loopback&lt;br /&gt;fe00::0 ip6-localnet&lt;br /&gt;ff00::0 ip6-mcastprefix&lt;br /&gt;ff02::1 ip6-allnodes&lt;br /&gt;ff02::2 ip6-allrouters&lt;br /&gt;ff02::3 ip6-allhosts&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
7. Finally restart apache and you are done.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;bash codecolorer&quot;&gt;
&lt;span style=&quot;color: white;&quot;&gt;&lt;span style=&quot;background-color: #666666;&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;etc&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;init.d&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;apache2 restart &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;bash codecolorer&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;bash codecolorer&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;bash codecolorer&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
Enjoy your virtual host :) &lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gubhaju-phpwizard.blogspot.com/feeds/6446937731391765412/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2013/06/how-to-create-virtual-host-in-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/6446937731391765412'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/6446937731391765412'/><link rel='alternate' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2013/06/how-to-create-virtual-host-in-ubuntu.html' title='How to create a virtual host in ubuntu?'/><author><name>Manny</name><uri>http://www.blogger.com/profile/12227417960255585387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1407993523856846079.post-5002214615585138843</id><published>2012-10-16T10:14:00.001+01:00</published><updated>2012-10-16T10:14:43.040+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache"/><category scheme="http://www.blogger.com/atom/ns#" term="How to"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>How to enable mod_rewrite in ubuntu?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Simply run the following command in the command line to enable mod_rewrite.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #666666;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;sudo a2enmod rewrite &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
The command simply adds the rewrite module to the apache configuration file as mod_rewrite is a part of apache. Now we need to restart apache to make the command take effect.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #666666;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;sudo /etc/init.d/apache2 restart&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
The command automatically adds file rewrite.load to the folder /etc/apache2/mods-enabled/&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gubhaju-phpwizard.blogspot.com/feeds/5002214615585138843/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2012/10/how-to-enable-modrewrite-in-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/5002214615585138843'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/5002214615585138843'/><link rel='alternate' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2012/10/how-to-enable-modrewrite-in-ubuntu.html' title='How to enable mod_rewrite in ubuntu?'/><author><name>Manny</name><uri>http://www.blogger.com/profile/12227417960255585387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1407993523856846079.post-5478384490252321796</id><published>2012-10-16T10:02:00.002+01:00</published><updated>2012-10-16T10:03:14.034+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache"/><category scheme="http://www.blogger.com/atom/ns#" term="How to"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>How to enable curl in PHP ubuntu?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
To enable curl in PHP in ubuntu we simply need to install it. The following command can be used to install curl in ubuntu.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&lt;span style=&quot;background-color: #666666;&quot;&gt;sudo apt-get install php5-curl &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now the next step would be restart apache using the following command&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #666666;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;sudo /etc/init.d/apache2 restart &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gubhaju-phpwizard.blogspot.com/feeds/5478384490252321796/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2012/10/how-to-enable-curl-in-php-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/5478384490252321796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/5478384490252321796'/><link rel='alternate' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2012/10/how-to-enable-curl-in-php-ubuntu.html' title='How to enable curl in PHP ubuntu?'/><author><name>Manny</name><uri>http://www.blogger.com/profile/12227417960255585387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1407993523856846079.post-3321078401626381680</id><published>2012-04-18T15:51:00.001+01:00</published><updated>2012-04-18T15:55:29.017+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JSON"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="XML"/><title type='text'>Getting latitude, longitude, timezone using ip address.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This is a post to find the latitude, longitude, timezone, country, city and so on using the web services/api by ipinfodb. The ipinfodb provides api in both xml and json format. We can use either of them. I will show you how to use it for both formats.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Using XML format:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
You can either register for api key from ipinfodb. I am using mine in this example.&lt;br /&gt;
&lt;b&gt; &lt;/b&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: #666666; color: white;&quot;&gt;
$key=&quot;9dcde915a1a065fbaf14165f00fcc0461b8d0a6b43889614e8acdb8343e2cf15&quot;;&lt;br /&gt;
$ip=&lt;span class=&quot;st&quot;&gt; &quot;208.115.219.10&quot;&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;background-color: #666666; color: white;&quot;&gt;
$url = &quot;http://api.ipinfodb.com/v3/ip-city/?key=$key&amp;amp;ip=$ip&amp;amp;format=xml&quot;;&lt;/div&gt;
&lt;div style=&quot;background-color: #666666; color: white;&quot;&gt;
// load xml file&lt;br /&gt;
$xml = simplexml_load_file($url);&lt;br /&gt;
// print the name of the first element&lt;br /&gt;
echo $xml-&amp;gt;getName() . &quot;&amp;lt;br /&amp;gt;&quot;;&lt;br /&gt;
// create a loop to print the element name and data for each node&lt;br /&gt;
foreach($xml-&amp;gt;children() as $child)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; echo $child-&amp;gt;getName() . &quot;: &quot; . $child . &quot;&amp;lt;br /&amp;gt;&quot;;&lt;br /&gt;
&amp;nbsp; }&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Output&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #666666; color: white;&quot;&gt;
Response&lt;br /&gt;
statusCode: OK&lt;br /&gt;
statusMessage: &lt;br /&gt;
ipAddress: 208.115.219.10&lt;br /&gt;
countryCode: US&lt;br /&gt;
countryName: UNITED STATES&lt;br /&gt;
regionName: NEW JERSEY&lt;br /&gt;
cityName: FLEMINGTON&lt;br /&gt;
zipCode: 08822&lt;br /&gt;
latitude: 40.5207&lt;br /&gt;
longitude: -74.8671&lt;br /&gt;
timeZone: -05:00&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Using JSON format&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #666666; color: white;&quot;&gt;
$key=&quot;9dcde915a1a065fbaf14165f00fcc0461b8d0a6b43889614e8acdb8343e2cf15&quot;;&lt;br /&gt;
$ip=$_POST[&#39;address&#39;];&lt;/div&gt;
&lt;div style=&quot;background-color: #666666; color: white;&quot;&gt;
$url = &quot;http://api.ipinfodb.com/v3/ip-city/?key=$key&amp;amp;ip=$ip&amp;amp;format=json&quot;;&lt;/div&gt;
&lt;div style=&quot;background-color: #666666; color: white;&quot;&gt;
$cont = file_get_contents($url);&lt;br /&gt;
&amp;nbsp;$data = json_decode($cont , true);&lt;/div&gt;
&lt;div style=&quot;background-color: #666666; color: white;&quot;&gt;
if(strlen($data[&#39;latitude&#39;]))&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $result = array(&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;ip&#39; =&amp;gt; $data[&#39;ipAddress&#39;] ,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;country_code&#39; =&amp;gt; $data[&#39;countryCode&#39;] ,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;country_name&#39; =&amp;gt; $data[&#39;countryName&#39;] ,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;region_name&#39; =&amp;gt; $data[&#39;regionName&#39;] ,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;city&#39; =&amp;gt; $data[&#39;cityName&#39;] ,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;zip_code&#39; =&amp;gt; $data[&#39;zipCode&#39;] ,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;latitude&#39; =&amp;gt; $data[&#39;latitude&#39;] ,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;longitude&#39; =&amp;gt; $data[&#39;longitude&#39;] ,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;time_zone&#39; =&amp;gt; $data[&#39;timeZone&#39;] ,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; );&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; print_r($result); &lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Output&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #666666; color: white;&quot;&gt;
Array
(
    [ip] =&amp;gt; 208.115.219.10
    [country_code] =&amp;gt; US
    [country_name] =&amp;gt; UNITED STATES
    [region_name] =&amp;gt; NEW JERSEY
    [city] =&amp;gt; FLEMINGTON
    [zip_code] =&amp;gt; 08822
    [latitude] =&amp;gt; 40.5207
    [longitude] =&amp;gt; -74.8671
    [time_zone] =&amp;gt; -05:00
)&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gubhaju-phpwizard.blogspot.com/feeds/3321078401626381680/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2012/04/getting-latitude-longitude-timezone.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/3321078401626381680'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/3321078401626381680'/><link rel='alternate' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2012/04/getting-latitude-longitude-timezone.html' title='Getting latitude, longitude, timezone using ip address.'/><author><name>Manny</name><uri>http://www.blogger.com/profile/12227417960255585387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1407993523856846079.post-7799534087019940009</id><published>2012-04-08T14:32:00.003+01:00</published><updated>2012-10-16T10:03:25.531+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="How to"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="XML"/><title type='text'>How to parse a XML file using SimpleXML in PHP5?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
SimpleXML is a very simple function introduced in PHP5 to parse a XML file. It is very simple to use and implement as compared to other bulky codes to parse a XML file. The steps are pretty simple. Let us use a simple XML file as below naming it as xmltest.xml.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;background-color: #cccccc; color: #999999;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&amp;lt;Response&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: #999999; color: white;&quot;&gt;
&amp;nbsp;&amp;lt;statusCode&amp;gt;OK&amp;lt;/statusCode&amp;gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #999999; color: white;&quot;&gt;
&amp;nbsp;&amp;lt;statusMessage/&amp;gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #999999; color: white;&quot;&gt;
&amp;nbsp;&amp;lt;ipAddress&amp;gt;173.200.52.93&amp;lt;/ipAddress&amp;gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #999999; color: white;&quot;&gt;
&amp;nbsp;&amp;lt;countryCode&amp;gt;US&amp;lt;/countryCode&amp;gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #999999; color: white;&quot;&gt;
&amp;nbsp;&amp;lt;countryName&amp;gt;UNITED STATES&amp;lt;/countryName&amp;gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #999999; color: white;&quot;&gt;
&amp;nbsp;&amp;lt;regionName&amp;gt;GEORGIA&amp;lt;/regionName&amp;gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #999999; color: white;&quot;&gt;
&amp;nbsp;&amp;lt;cityName&amp;gt;ATLANTA&amp;lt;/cityName&amp;gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #999999; color: white;&quot;&gt;
&amp;nbsp;&amp;lt;zipCode&amp;gt;30339&amp;lt;/zipCode&amp;gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #999999; color: white;&quot;&gt;
&amp;nbsp;&amp;lt;latitude&amp;gt;33.809&amp;lt;/latitude&amp;gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #999999; color: white;&quot;&gt;
&amp;nbsp;&amp;lt;longitude&amp;gt;-84.3548&amp;lt;/longitude&amp;gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #999999; color: white;&quot;&gt;
&amp;nbsp;&amp;lt;timeZone&amp;gt;-05:00&amp;lt;/timeZone&amp;gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #999999; color: white;&quot;&gt;
&amp;nbsp;&amp;lt;/Response&amp;gt;&lt;/div&gt;
&lt;br /&gt;
Now you can use the following php code to parse the above xmltest.xml file.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #999999; color: white;&quot;&gt;
&amp;lt;?php&lt;/div&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;// load xml file&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;$xml = simplexml_load_file(&quot;xmltest.xml&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;// print the name of the first element&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;echo $xml-&amp;gt;getName() . &quot;&amp;lt;br /&amp;gt;&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;// create a loop to print the element name and data for each node&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;foreach($xml-&amp;gt;children() as $child)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&amp;nbsp; echo $child-&amp;gt;getName() . &quot;: &quot; . $child . &quot;&amp;lt;br /&amp;gt;&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;?&amp;gt;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The above code will print the output as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;Response&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;statusCode: OK&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;statusMessage:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;ipAddress: 173.200.52.93&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;countryCode: US&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;countryName: UNITED STATES&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;regionName: GEORGIA&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;cityName: ATLANTA&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;zipCode: 30339&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;latitude: 33.809&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;longitude: -84.3548&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;timeZone: -05:00&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gubhaju-phpwizard.blogspot.com/feeds/7799534087019940009/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2012/04/how-to-parse-xml-using-simplexml-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/7799534087019940009'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/7799534087019940009'/><link rel='alternate' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2012/04/how-to-parse-xml-using-simplexml-in.html' title='How to parse a XML file using SimpleXML in PHP5?'/><author><name>Manny</name><uri>http://www.blogger.com/profile/12227417960255585387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1407993523856846079.post-8947337826079639051</id><published>2012-03-30T16:41:00.000+01:00</published><updated>2012-03-30T16:45:48.798+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>Changing file permissions of a folder and all of its subfolders and files in Ubuntu.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Changing file permissions in Ubuntu is a very essential thing. If proper file permissions are not set to folders or files, it is not possible to execute any PHP or HTML files from the browser using localhost. The following command can be used to set file permission for any file or folder.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;sudo chmod 755 /var/www/myfolder&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
In the above example&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&amp;nbsp; &amp;nbsp; 7 – Owner(current user)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 5 – Group(set by owner)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 5 – anyone else&lt;br /&gt;
&lt;br /&gt;
To change the file permission for all the files and subfolders inside a folder the following command can be used:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;sudo chmod 755 -R /var/www/myfolder&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
0 – no permission, this person cannot read, write or execute&lt;br /&gt;
1 – execute only&lt;br /&gt;
2 – write only&lt;br /&gt;
3 – execute and write only (1 + 2)&lt;br /&gt;
4 – read only&lt;br /&gt;
5 – execute and read only (1 + 4)&lt;br /&gt;
6 – write and read only (2 + 4)&lt;br /&gt;
7 – execute, write and read (1 + 2 + 3)

&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gubhaju-phpwizard.blogspot.com/feeds/8947337826079639051/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2012/03/changing-file-permissions-in-ubuntu.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/8947337826079639051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/8947337826079639051'/><link rel='alternate' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2012/03/changing-file-permissions-in-ubuntu.html' title='Changing file permissions of a folder and all of its subfolders and files in Ubuntu.'/><author><name>Manny</name><uri>http://www.blogger.com/profile/12227417960255585387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1407993523856846079.post-8428447605014051646</id><published>2012-03-28T16:03:00.000+01:00</published><updated>2012-10-16T10:03:32.347+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache"/><category scheme="http://www.blogger.com/atom/ns#" term="How to"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="MYSQL"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>How to fix &quot;url /phpmyadmin was not found in this server&quot; problem in Ubuntu (linux)?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Sometimes after installing LAMP, when you try to open the phpmyadmin in your browser you might get the error like this:&lt;br /&gt;
&quot;Not Found&lt;br /&gt;
The requested URL /phpMyAdmin was not found on this server.&lt;br /&gt;
Apache/2.2.12 (Ubuntu) Server at localhost Port 80&quot;&lt;br /&gt;
&lt;br /&gt;
This is likely to be caused by not checking apache2 during installation. To reinstall you can use the following command:&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&amp;nbsp;sudo dpkg-reconfigure -plow phpmyadmin&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
If the above code does not work you can include the phpMyadmin-shipped Apache configuration into Apache using the command below:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;sudo /etc/init.d/apache2 reload&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gubhaju-phpwizard.blogspot.com/feeds/8428447605014051646/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2012/03/how-to-fix-url-phpmyadmin-was-not-found.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/8428447605014051646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/8428447605014051646'/><link rel='alternate' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2012/03/how-to-fix-url-phpmyadmin-was-not-found.html' title='How to fix &quot;url /phpmyadmin was not found in this server&quot; problem in Ubuntu (linux)?'/><author><name>Manny</name><uri>http://www.blogger.com/profile/12227417960255585387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1407993523856846079.post-4083099559230818518</id><published>2012-03-17T13:56:00.002+00:00</published><updated>2013-06-14T14:21:51.393+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache"/><category scheme="http://www.blogger.com/atom/ns#" term="How to"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="MYSQL"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>How to install LAMP in Ubuntu (linux)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
LAMP stands for Linux, Apache, MySQL and PHP/Python. Installing and configuring LAMP is not a very complicated thing in Ubuntu, its just a matter of few lines of commands via the command line. This post will show you how to install PHP5, Apache2, MySQL and phpMyAdmin in Ubuntu.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Installing Apache&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
1. Open the terminal and type the following command.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;sudo apt-get install apache2&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
2. Type the password when asked and press enter key.&lt;br /&gt;
3. To test if apache is installed in your system or not. Open the browser and type localhost. If you see a message saying &quot;it works&quot; then its installed.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Installing PHP5&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
1. Open the terminal and type the following command.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;sudo apt-get install php5 libapache2-mod-php5&lt;/span&gt; &lt;br /&gt;
&lt;br /&gt;
2. Restart apache by typing the following command.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;sudo /etc/init.d/apache2 restart&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
3. Now test if PHP is installed in your system or not. Type the following command in the terminal to edit a PHP file.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;sudo gedit /var/www/myfirstphp.php &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
4. Type the following code in the editor and save it.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&amp;lt;?php echo &quot;hello world&quot;;?&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
5. Open the browser and type the following URL.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;http://localhost/myfirstphp.php&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
6. If it displays hello world then it works.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Installing MySQL&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
1. Open the terminal and type the following command.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;sudo apt-get install mysql-server&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
2. It will ask you for the MySQL password. Enter and remember the password. You can change the password by typing the following command.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #999999; color: white;&quot;&gt;
mysql -u root&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;mysql&amp;gt; SET PASSWORD FOR &#39;root&#39;@&#39;localhost&#39; = PASSWORD(&#39;yourpassword&#39;);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Installing phpMyAdmin&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
1. Type the following command in the terminal to instal phpMyAdmin.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
2. Now we need to configure php.ini file to make PHP work with mysql. So type the following command.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;gksudo gedit /etc/php5/apache2/php.ini&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
3. Search for &#39;;extension=mysql.so&#39; and remove the semicolon(;) which is in the beginning of the line. It must look like this.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;extension=msql.so&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
4. Save the file and restart Apache by typing the following command and you are done.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;sudo /etc/init.d/apache2 restart&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gubhaju-phpwizard.blogspot.com/feeds/4083099559230818518/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2012/03/how-to-install-lamp-in-ubuntu-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/4083099559230818518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/4083099559230818518'/><link rel='alternate' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2012/03/how-to-install-lamp-in-ubuntu-linux.html' title='How to install LAMP in Ubuntu (linux)'/><author><name>Manny</name><uri>http://www.blogger.com/profile/12227417960255585387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1407993523856846079.post-8512688065523096749</id><published>2012-03-09T15:40:00.000+00:00</published><updated>2012-03-09T15:47:02.405+00:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Facebook"/><title type='text'>Adding facebook comment box to your blogger</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Few days ago I wrote about adding facebook comment box to your website. To add similar comment box to your blogger a few more steps are required. Adding this box helps users to comment to your posts easily in one click without having the blogger account. Let us see how we can embed it.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
1. Create a Facebook application. (&lt;a href=&quot;http://gubhaju-phpwizard.blogspot.com/2012/03/adding-facebook-comment-box-to-your.html&quot; target=&quot;_blank&quot;&gt;Click here&lt;/a&gt; to follow the steps).&lt;br /&gt;
2. Go to your Blogger-&amp;gt;Design-&amp;gt;Edit HTML.&lt;br /&gt;
3. Proceed to edit HTML and check Expand Widget Templates check-box (Back up your code before editing anything).&lt;br /&gt;
4. Search for &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&amp;lt;html&lt;/span&gt; and enter the following code just after it leaving a space.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;xmlns: fb=&#39;http://www.facebook.com/2008/fbml&#39;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
5. Search for &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&amp;lt;body expr:class=&#39;&amp;amp;quot;loading&amp;amp;quot; + data:blog.mobileClass&#39;&amp;gt;&lt;/span&gt; and copy the following code just below it.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #999999; color: white;&quot;&gt;
&amp;lt;div id=&#39;fb-root&#39;/&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; window.fbAsyncInit = function() {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; FB.init({&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; appId&amp;nbsp; : &amp;amp;#39;APP_ID&amp;amp;#39;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status : true, // check login status&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cookie : true, // enable cookies to allow the server to access the&amp;nbsp;&amp;nbsp; session&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xfbml&amp;nbsp; : true&amp;nbsp; // parse XFBML&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;br /&gt;
&amp;nbsp; };&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; (function() {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var e = document.createElement(&amp;amp;#39;script&amp;amp;#39;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.src = document.location.protocol +&amp;nbsp;&amp;nbsp; &amp;amp;#39;//connect.facebook.net/en_US/all.js&amp;amp;#39;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; e.async = true;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementById(&amp;amp;#39;fb-root&amp;amp;#39;).appendChild(e);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }());&lt;br /&gt;
&amp;lt;/script&amp;gt;&amp;nbsp; &lt;/div&gt;
&lt;br /&gt;
Replace APP_ID with your facebook application ID.&lt;br /&gt;
&lt;br /&gt;
6. Search for &amp;lt;/head&amp;gt; and copy paste the following code just above it.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: white;&quot;&gt;
&lt;span style=&quot;background-color: #999999;&quot;&gt;&amp;lt;meta expr:content=&#39;data:blog.pageTitle&#39; property=&#39;og:title&#39;/&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: white;&quot;&gt;
&lt;span style=&quot;background-color: #999999;&quot;&gt;&amp;lt;meta expr:content=&#39;data:blog.url&#39; property=&#39;og:url&#39;/&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: white;&quot;&gt;
&lt;span style=&quot;background-color: #999999;&quot;&gt;&amp;lt;meta content=&#39;YOUR BLOG TITLE&#39; property=&#39;og:site_name&#39;/&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: white;&quot;&gt;
&lt;span style=&quot;background-color: #999999;&quot;&gt;&amp;lt;meta content=&#39;IMAGE-URL&#39; property=&#39;og:image&#39;/&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: white;&quot;&gt;
&lt;span style=&quot;background-color: #999999;&quot;&gt;&amp;lt;meta content=&#39;APP_ID &#39; property=&#39;fb:app_id&#39;/&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: white;&quot;&gt;
&lt;span style=&quot;background-color: #999999;&quot;&gt;&amp;lt;meta content=&#39;http://www.facebook.com/manishgubaju&#39; property=&#39;fb:admins&#39;/&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: white;&quot;&gt;
&lt;span style=&quot;background-color: #999999;&quot;&gt;&amp;lt;meta content=&#39;article&#39; property=&#39;og:type&#39;/&amp;gt; &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
Replace YOUR BLOG TITLE, IMAGE-URL, APP_ID and http://www.facebook.com/manishgubaju with your facebook profile link.&lt;br /&gt;
&lt;br /&gt;
7. Search for &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&amp;lt;b:includable id=&#39;comment-form&#39; var=&#39;post&#39;&amp;gt;&lt;/span&gt; and just below it copy the following code.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: white;&quot;&gt;
&lt;span style=&quot;background-color: #999999;&quot;&gt;&amp;lt;b:if cond=&#39;data:blog.pageType == &amp;amp;quot;item&amp;amp;quot;&#39;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: white;&quot;&gt;
&lt;span style=&quot;background-color: #999999;&quot;&gt;&amp;lt;div style=&#39;padding:0px 0px 0px 0px; margin:0px 0px 0px 0px;&#39;&amp;gt;&amp;lt;script src=&#39;http://connect.facebook.net/en_US/all.js#xfbml=1&#39;/&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: white;&quot;&gt;
&lt;span style=&quot;background-color: #999999;&quot;&gt;&amp;lt;div&amp;gt; &amp;lt;fb:comments&amp;nbsp; colorscheme=&#39;&lt;/span&gt;&lt;i style=&quot;background-color: #999999;&quot;&gt;&lt;b&gt;light&lt;/b&gt;&lt;/i&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;&#39; expr:href=&#39;data:post.url&#39; expr:title=&#39;data:post.title&#39; expr:xid=&#39;data:post.id&#39; width=&#39;520&#39;/&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: white;&quot;&gt;
&lt;span style=&quot;background-color: #999999;&quot;&gt;&amp;lt;div style=&#39;color:#fff; background-color:#3B5998;border: solid 1px #ddd; font-size:10px; padding:3px; width:&lt;/span&gt;&lt;i style=&quot;background-color: #999999;&quot;&gt;&lt;b&gt;510px&lt;/b&gt;&lt;/i&gt;&lt;span style=&quot;background-color: #999999;&quot;&gt;;&#39;&amp;gt;Facebook Blogger Plugin: Bloggerized by &amp;lt;b&amp;gt;&amp;lt;a alt=&#39;blogger templates&#39; href=&#39;http://www.allblogtools.com/&#39; style=&#39;text-decoration:underline; color:#fff;&#39; target=&#39;_blank&#39; title=&#39;blogger templates&#39;&amp;gt;AllBlogTools.com&amp;lt;/a&amp;gt;&amp;lt;/b&amp;gt; Enhanced by &amp;lt;b&amp;gt;&amp;lt;a alt=&#39;blogger widgets&#39; href=&#39;http://www.mybloggertricks.com/&#39; style=&#39;text-decoration:underline; color:#fff;&#39; target=&#39;_blank&#39; title=&#39;Blogger Widgets&#39;&amp;gt;MyBloggerTricks.com&amp;lt;/a&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: white;&quot;&gt;
&lt;span style=&quot;background-color: #999999;&quot;&gt;&amp;lt;/b:if&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
You can choose your colorscheme as light or dark and also vary the width of the comment box as shown above.&lt;br /&gt;
&lt;br /&gt;
8. Save your template and you are done.&lt;br /&gt;
&lt;pre&gt;&amp;nbsp; &lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gubhaju-phpwizard.blogspot.com/feeds/8512688065523096749/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2012/03/adding-facebook-comment-box-to-your_09.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/8512688065523096749'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/8512688065523096749'/><link rel='alternate' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2012/03/adding-facebook-comment-box-to-your_09.html' title='Adding facebook comment box to your blogger'/><author><name>Manny</name><uri>http://www.blogger.com/profile/12227417960255585387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1407993523856846079.post-7649226413389026354</id><published>2012-03-06T12:46:00.000+00:00</published><updated>2012-03-30T16:06:43.755+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Facebook"/><title type='text'>Adding facebook comment box to your website</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Adding Facebook comment box to your website is not as difficult as it used to be about an year ago. When I first used Facebook comment in one of my website about an year ago, I first had to use facebook connect and then write a lot of complicated fbml codes. It was a hell full of complications. But now it has become very easy all because of the Facebook Social Plugins. It just copy paste of some html codes and you are done. The following steps will guide you through using it.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
1. Create a Facebook application for your website by using the following link:&lt;br /&gt;
&lt;a href=&quot;http://developers.facebook.com/setup&quot; target=&quot;_blank&quot;&gt;&lt;span class=&quot;nodeLabelBox repTarget &quot; role=&quot;treeitem&quot;&gt;&lt;span class=&quot;nodeAttr editGroup &quot;&gt;&lt;span class=&quot;nodeValue editable &quot;&gt;http://developers.facebook.com/setup&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
2. Fill the details like app name and captcha as shown below.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpIu-3cBdSG46jjdP4UmvFUUosSUHA04K9uqDymXDWYXOHRj7eeK8dLHEb4nNJdF4LhKIITxGdnMIFsXLnKnY06N9mll-pLuAz44vEYgPkD0kIVJjPCl52ya2INHdFj6-hco_I-v_YX4s/s1600/developers.png.png.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;142&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpIu-3cBdSG46jjdP4UmvFUUosSUHA04K9uqDymXDWYXOHRj7eeK8dLHEb4nNJdF4LhKIITxGdnMIFsXLnKnY06N9mll-pLuAz44vEYgPkD0kIVJjPCl52ya2INHdFj6-hco_I-v_YX4s/s400/developers.png.png.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBaqzLTO_JljdSWstyOFHQmehOYlfGoItESRWKepMDK55rLfhT2Jze-u4kgPgi7uYefiW8eQp0gys_Obugj4CQ6yVUvV2P6D5jeinK9SjtM-26C_7J4ivnHSpB2i1Dgrwh6KqbhxpuREg/s1600/captcha.png.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;205&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBaqzLTO_JljdSWstyOFHQmehOYlfGoItESRWKepMDK55rLfhT2Jze-u4kgPgi7uYefiW8eQp0gys_Obugj4CQ6yVUvV2P6D5jeinK9SjtM-26C_7J4ivnHSpB2i1Dgrwh6KqbhxpuREg/s400/captcha.png.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
3. You will be able to see your app page now where you can add the domain name of your website and will be able to see your app ID and app secrect key.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjVz6dbBr2oLjQ282e5LfRkyRoH9cxfYx5zdslbAnZTJv_ddFEtmcnZgOxFsM-6f58NXiJeImNUOe3I9pVhH8aaGE-hgr9kr_zNehFDYTp9-hj4A3MaJgmVlZ-c-vy6vveAX4suCd_Gy4/s1600/myapp.png.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;288&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjVz6dbBr2oLjQ282e5LfRkyRoH9cxfYx5zdslbAnZTJv_ddFEtmcnZgOxFsM-6f58NXiJeImNUOe3I9pVhH8aaGE-hgr9kr_zNehFDYTp9-hj4A3MaJgmVlZ-c-vy6vveAX4suCd_Gy4/s400/myapp.png.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
4. Now go to the following facebook comments website using the link &lt;span class=&quot;nodeLabelBox repTarget &quot; role=&quot;treeitem&quot;&gt;&lt;span class=&quot;nodeAttr editGroup &quot;&gt;&lt;span class=&quot;nodeValue editable &quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://developers.facebook.com/docs/reference/plugins/comments/&quot; target=&quot;_blank&quot;&gt;http://developers.facebook.com/docs/reference/plugins/comments/.&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkg06jKMc7J5Aea_LLVHxldr2KPKDVRBL44drAYD0KgRvt1pZas1vnkhmiKxaNYc6xJlWmp_DJ-2ocY62P8KEBlUtB6IVhkO5f2QkmCCgjSr2fhDwjWKsk-5TEX63RBrpTklCnfliWlpY/s1600/getcode.png.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;227&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkg06jKMc7J5Aea_LLVHxldr2KPKDVRBL44drAYD0KgRvt1pZas1vnkhmiKxaNYc6xJlWmp_DJ-2ocY62P8KEBlUtB6IVhkO5f2QkmCCgjSr2fhDwjWKsk-5TEX63RBrpTklCnfliWlpY/s400/getcode.png.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
5. Enter your url that you created, no. of comments that you would like to 
display, width, colour and get the code. Simply put the code inside 
your body tag and you are done.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gubhaju-phpwizard.blogspot.com/feeds/7649226413389026354/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2012/03/adding-facebook-comment-box-to-your.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/7649226413389026354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/7649226413389026354'/><link rel='alternate' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2012/03/adding-facebook-comment-box-to-your.html' title='Adding facebook comment box to your website'/><author><name>Manny</name><uri>http://www.blogger.com/profile/12227417960255585387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpIu-3cBdSG46jjdP4UmvFUUosSUHA04K9uqDymXDWYXOHRj7eeK8dLHEb4nNJdF4LhKIITxGdnMIFsXLnKnY06N9mll-pLuAz44vEYgPkD0kIVJjPCl52ya2INHdFj6-hco_I-v_YX4s/s72-c/developers.png.png.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1407993523856846079.post-3186880029092659734</id><published>2012-03-02T16:10:00.002+00:00</published><updated>2012-03-03T14:31:53.111+00:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MYSQL"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>SQL Injection and its prevention in PHP</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;b&gt;What is SQL injection?&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
SQL injection is one of the common attacks in web industry which uses SQL statements in the web form to execute a query in the wrong way and make attacks like making an unauthorised login or making wrong access to the data in the database. SQL injection usually occurs when users are asked for inputs through the HTML forms.&lt;br /&gt;
&lt;br /&gt;
Let us see a common example of SQL injection. Suppose we have a user login form that asks for their username and password. We use select statement for validating the username&amp;nbsp; which is stored in the database.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Code:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Proper user input:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt; &lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: #999999; color: black;&quot;&gt;
$uname= &quot;Harry&quot;;&lt;/div&gt;
&lt;div style=&quot;background-color: #999999; color: black;&quot;&gt;
$query= &quot;SELECT * from tbl_users where username=&#39;$uname&#39;&quot;;&lt;/div&gt;
&lt;div style=&quot;background-color: #999999; color: black;&quot;&gt;
//query that is executed&lt;/div&gt;
&lt;div style=&quot;background-color: #999999; color: black;&quot;&gt;
$query= &quot;SELECT * from tbl_users where username=&#39;Harry&#39;&quot;;&lt;/div&gt;
&lt;br /&gt;
SQL injected user input:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #999999; color: black;&quot;&gt;
$uname=&quot;&#39; or &#39;1=1&quot;;&lt;/div&gt;
&lt;div style=&quot;background-color: #999999; color: black;&quot;&gt;
$query= &quot;SELECT * from tbl_users where username=&#39;$uname&#39;&quot;;&lt;/div&gt;
&lt;div style=&quot;background-color: #999999; color: black;&quot;&gt;
//query that is executed&lt;/div&gt;
&lt;div style=&quot;background-color: #999999; color: black;&quot;&gt;
$query= &quot;SELECT * from tbl_users where username=&#39;&#39; or &#39;1=1&#39;&quot;;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp;The above SQL statement satisfies the where condition and will allow the intruder to make an unauthorised login into your application.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;How to prevent SQL injection?&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The root cause for all SQL injection attacks are quotes (&#39; &#39;); therefore it is very important to escape these quotes while getting string inputs from the users. In PHP 4, there were no such functions to escape these quotes apart from setting &lt;b&gt;magic_quotes_gpc &lt;/b&gt;ON in the PHP configuration file which does the same task as done by &lt;b&gt;addslashes()&lt;/b&gt; function does. Since, the setting was for all files, it would cause a big problem during other tasks as each and every quote would be escaped.&lt;br /&gt;
&lt;br /&gt;
To fix this problem, PHP removed magic quotes from PHP 5.4.0 and introduced a new function called &lt;b&gt;mysql_real_escape_string()&lt;/b&gt;. This function replaces troublesome single quote (&#39;) with slash and quote (\&#39;). &lt;br /&gt;
&lt;br /&gt;
Therefore we can use this function in our above code to prevent SQL injection as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #999999; color: black;&quot;&gt;
$uname=&quot;&#39; or &#39;1=1&quot;;&lt;/div&gt;
&lt;div style=&quot;background-color: #999999; color: black;&quot;&gt;
$uname=mysql_real_escape_string($uname); // value of $uname will be \&#39; or \&#39;1=1&lt;/div&gt;
&lt;div style=&quot;background-color: #999999; color: black;&quot;&gt;
$query= &quot;SELECT * from tbl_users where username=&#39;$uname&#39;&quot;;&lt;/div&gt;
&lt;div style=&quot;background-color: #999999; color: black;&quot;&gt;
//query that is executed&lt;/div&gt;
&lt;div style=&quot;background-color: #999999; color: black;&quot;&gt;
$query= &quot;SELECT * from tbl_users where username=&#39;\&#39; or \&#39;1=1&#39;&quot;;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
This is one of the easiest solution to prevent SQL injection and make your website safe.&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gubhaju-phpwizard.blogspot.com/feeds/3186880029092659734/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2012/03/sql-injection-and-its-prevention-in-php.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/3186880029092659734'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/3186880029092659734'/><link rel='alternate' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2012/03/sql-injection-and-its-prevention-in-php.html' title='SQL Injection and its prevention in PHP'/><author><name>Manny</name><uri>http://www.blogger.com/profile/12227417960255585387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1407993523856846079.post-4800048833041289447</id><published>2012-02-27T17:40:00.002+00:00</published><updated>2012-10-16T10:03:54.196+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="How to"/><category scheme="http://www.blogger.com/atom/ns#" term="iPhone"/><category scheme="http://www.blogger.com/atom/ns#" term="Jailbreak"/><category scheme="http://www.blogger.com/atom/ns#" term="Unlock"/><title type='text'>How to jailbreak and unlock iPhone 4 IOS 4.3.3</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKpnA5LbgnD8ILU_NKoIm9VuD_543o-B0OqhK5_CjKj04lV6ABgSvGsa_VZmALfFb7CGpS6KpWdc1IocjLTKMmS_0CnDK4O86KYHryBx1RwXlULL41PlSiXXaDp3YIN4e1Lv3h9YR8wz0/s1600/apple.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKpnA5LbgnD8ILU_NKoIm9VuD_543o-B0OqhK5_CjKj04lV6ABgSvGsa_VZmALfFb7CGpS6KpWdc1IocjLTKMmS_0CnDK4O86KYHryBx1RwXlULL41PlSiXXaDp3YIN4e1Lv3h9YR8wz0/s1600/apple.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
To unlock iPhone running on IOS 4.3.3, it should be first jailbroken using redsnow 0.9.6rc15 which was developed by the Dev team in May 2011 and then unlocked by installing UltraSnow 1.2.3 via cydia. Below are the detail steps for jailbreaking and unlocking iPhone IOS 4.3.3:&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
Note: Try at your own risk.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;A. JAILBREAK IPHONE&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
1. Download redsnow 0.9.6rc15 (&lt;a href=&quot;https://sites.google.com/a/iphone-dev.com/files/home/redsn0w_mac_0.9.6rc16.zip?attredirects=0&amp;amp;d=1&quot; target=&quot;_blank&quot;&gt;Mac&lt;/a&gt;, &lt;a href=&quot;https://sites.google.com/a/iphone-dev.com/files/home/redsn0w_win_0.9.6rc16.zip?attredirects=0&amp;amp;d=1&quot; target=&quot;_blank&quot;&gt;Windows&lt;/a&gt;).&lt;br /&gt;
2. &lt;a href=&quot;http://appldnld.apple.com/iPhone4/041-1011.20110503.q7fGc/iPhone3,1_4.3.3_8J2_Restore.ipsw&quot; target=&quot;_blank&quot;&gt;Download &lt;/a&gt;IOS 4.3.3 for iPhone 4.&lt;br /&gt;
3. Connect your iPhone with your computer.&lt;br /&gt;
4. Run redsnow 0.9.6rc15 that you had downloaded using the steps given below:&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Step 1: Launch redsnow.&lt;/li&gt;
&lt;li&gt;Step 2: Click browse and find the corresponding IOS 4.3.3 (.ipsw file) that you had downloaded earlier.&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhE2SeYInJJ3SfJCI22tEEjbwXSzRb4YzghesA_HaHWC6d-Ble2WftBJJDG10YYATfx6_RN9oHhaPQryHwMKBAmEkwPROeu-9DE4NSsxlNn8mTvmAbxeOJoU4X9JALDDasJm5C7btbnLlM/s1600/step1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhE2SeYInJJ3SfJCI22tEEjbwXSzRb4YzghesA_HaHWC6d-Ble2WftBJJDG10YYATfx6_RN9oHhaPQryHwMKBAmEkwPROeu-9DE4NSsxlNn8mTvmAbxeOJoU4X9JALDDasJm5C7btbnLlM/s400/step1.jpg&quot; width=&quot;313&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&amp;nbsp;Step 3: After selecting the .ipsw file a rapid process will start for patching the kernel into your iphone. Now a window will appear for selecting applications. Select cydia only in the options as shown below:&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhI-yE7qOHi5PcekOTuCOyDKsuXGDzfnCzqimIf9eUViRtPB_mZhOOdlKqoiXYlXdu8nwrK450pwD0QSEi_vzqqbTinAoYHQCjSahYiwXrj4sznlt-wZ6e5lh3KinPsk0U7KNfDmBkY1xE/s1600/step+3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhI-yE7qOHi5PcekOTuCOyDKsuXGDzfnCzqimIf9eUViRtPB_mZhOOdlKqoiXYlXdu8nwrK450pwD0QSEi_vzqqbTinAoYHQCjSahYiwXrj4sznlt-wZ6e5lh3KinPsk0U7KNfDmBkY1xE/s400/step+3.png&quot; width=&quot;326&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&amp;nbsp;Step 4: The phone will now go into DFU mode. Follow the steps as guided by the software. If you are not able to set your phone into DFU mode please refer to a video tutorial for setting your iPhone into DFU mode.&lt;/li&gt;
&lt;/ul&gt;
When the process is completed cydia application will be installed in your iPhone.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;B. Unlock your iPhone&lt;/b&gt;&lt;/u&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Step 1: Open the Cydia installed in your iPhone.&lt;/li&gt;
&lt;li&gt;Step 2: Goto Search Tab and search for ultrasnow.&lt;/li&gt;
&lt;li&gt;Step 3:&amp;nbsp; Install ultrasnow.&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFXvWEcG_ZLxe-k2Hnw8c8d7aC-tVOPsmDEKAnGUpmzzfy35EMp7Wb5dq-Ks_Qc-sDHwlK9lCzlkgaPF_KWwD64YC4iybv5oooOXgM1Uw__qnzPkl9nSkOG_nsruzkALlVsNXVj-iXYcg/s1600/cydia1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFXvWEcG_ZLxe-k2Hnw8c8d7aC-tVOPsmDEKAnGUpmzzfy35EMp7Wb5dq-Ks_Qc-sDHwlK9lCzlkgaPF_KWwD64YC4iybv5oooOXgM1Uw__qnzPkl9nSkOG_nsruzkALlVsNXVj-iXYcg/s1600/cydia1.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCvewXGzr6xiXscLrtJYYqBrNCZ2g-mcVJN0-s-tB8SqKSqDbtDINMb6vViGUUnV_E_tpAdag0-uMk8600XB85uIThXDW87zCdUZN41KFX0nAS-1HR84ycZnSKpLjfdM6lBTFLSn-bauw/s1600/cydia2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCvewXGzr6xiXscLrtJYYqBrNCZ2g-mcVJN0-s-tB8SqKSqDbtDINMb6vViGUUnV_E_tpAdag0-uMk8600XB85uIThXDW87zCdUZN41KFX0nAS-1HR84ycZnSKpLjfdM6lBTFLSn-bauw/s320/cydia2.jpg&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCOijcsXL2BqPL3NnJv58GGNFf1U7aaPDo6bYxgJZMeqnlcvcQZZAZ858hcUe-m75HTSJXC8AVSyhdgNKMGNdGTIax2V4sOHWFqCND5D5vfS86gq1G9b0K5gjfm6AAsG8lhdi9cz6nKHo/s1600/cydia3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCOijcsXL2BqPL3NnJv58GGNFf1U7aaPDo6bYxgJZMeqnlcvcQZZAZ858hcUe-m75HTSJXC8AVSyhdgNKMGNdGTIax2V4sOHWFqCND5D5vfS86gq1G9b0K5gjfm6AAsG8lhdi9cz6nKHo/s1600/cydia3.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Installing ultrasnow and rebooting your phone will unlock your iPhone. &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gubhaju-phpwizard.blogspot.com/feeds/4800048833041289447/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2012/02/how-to-jailbreak-and-unlock-iphone-ios.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/4800048833041289447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/4800048833041289447'/><link rel='alternate' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2012/02/how-to-jailbreak-and-unlock-iphone-ios.html' title='How to jailbreak and unlock iPhone 4 IOS 4.3.3'/><author><name>Manny</name><uri>http://www.blogger.com/profile/12227417960255585387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKpnA5LbgnD8ILU_NKoIm9VuD_543o-B0OqhK5_CjKj04lV6ABgSvGsa_VZmALfFb7CGpS6KpWdc1IocjLTKMmS_0CnDK4O86KYHryBx1RwXlULL41PlSiXXaDp3YIN4e1Lv3h9YR8wz0/s72-c/apple.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1407993523856846079.post-2624877833626039380</id><published>2012-02-26T14:01:00.000+00:00</published><updated>2012-09-06T10:49:17.939+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Getting city name using real IP address</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://static.php.net/www.php.net/images/logos/php-med-trans.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://static.php.net/www.php.net/images/logos/php-med-trans.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Getting
 the name of the city using IP address is quite simple. This tutorial 
shows how we can get real IP address of the server and find the city 
name using the IP address with the help of API from GEOBYTES.&lt;br /&gt;
Following are the steps to do this:&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
1. Find the real IP address using the following function.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: white;&quot;&gt;
&lt;span style=&quot;background-color: #999999;&quot;&gt;function getRealIpAddr()&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: white;&quot;&gt;
&lt;span style=&quot;background-color: #999999;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: white;&quot;&gt;
&lt;span style=&quot;background-color: #999999;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!empty($_SERVER[&#39;HTTP_CLIENT_IP&#39;]))&amp;nbsp;&amp;nbsp; //check ip from share internet&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: white;&quot;&gt;
&lt;span style=&quot;background-color: #999999;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: white;&quot;&gt;
&lt;span style=&quot;background-color: #999999;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ip=$_SERVER[&#39;HTTP_CLIENT_IP&#39;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: white;&quot;&gt;
&lt;span style=&quot;background-color: #999999;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: white;&quot;&gt;
&lt;span style=&quot;background-color: #999999;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; elseif (!empty($_SERVER[&#39;HTTP_X_FORWARDED_FOR&#39;]))&amp;nbsp;&amp;nbsp; //to check ip is pass from proxy&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: white;&quot;&gt;
&lt;span style=&quot;background-color: #999999;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: white;&quot;&gt;
&lt;span style=&quot;background-color: #999999;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ip=$_SERVER[&#39;HTTP_X_FORWARDED_FOR&#39;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: white;&quot;&gt;
&lt;span style=&quot;background-color: #999999;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: white;&quot;&gt;
&lt;span style=&quot;background-color: #999999;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: white;&quot;&gt;
&lt;span style=&quot;background-color: #999999;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: white;&quot;&gt;
&lt;span style=&quot;background-color: #999999;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ip=$_SERVER[&#39;REMOTE_ADDR&#39;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: white;&quot;&gt;
&lt;span style=&quot;background-color: #999999;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: white;&quot;&gt;
&lt;span style=&quot;background-color: #999999;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return $ip;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: white;&quot;&gt;
&lt;span style=&quot;background-color: #999999;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: white;&quot;&gt;
&lt;br style=&quot;background-color: #999999;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;color: white;&quot;&gt;
&lt;span style=&quot;background-color: #999999;&quot;&gt;$ip=getRealIpAddr();&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
2. Get the city name using the API from GEOBYTES.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #999999; color: white;&quot;&gt;
$tags = get_meta_tags(&quot;http://www.geobytes.com/IpLocator.htm?GetLocation&amp;amp;template=php3.txt&amp;amp;IpAddress=$ip&quot;);&lt;br /&gt;
$city= ucfirst($tags[&#39;city&#39;]); // $tags is an array that contains city name for the supplied IP Address&lt;/div&gt;
&lt;div style=&quot;color: white;&quot;&gt;
&lt;span style=&quot;background-color: #999999;&quot;&gt;echo $city; // prints the city name&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gubhaju-phpwizard.blogspot.com/feeds/2624877833626039380/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2012/02/getting-city-name-using-real-ip-address.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/2624877833626039380'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/2624877833626039380'/><link rel='alternate' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2012/02/getting-city-name-using-real-ip-address.html' title='Getting city name using real IP address'/><author><name>Manny</name><uri>http://www.blogger.com/profile/12227417960255585387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1407993523856846079.post-6967188996978275379</id><published>2012-02-23T20:57:00.000+00:00</published><updated>2012-02-27T16:35:40.544+00:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="JQuery"/><title type='text'>LightBox for displaying contents and image using a common jquery plugin</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://static.jquery.com/files/rocker/images/logo_jquery_215x53.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://static.jquery.com/files/rocker/images/logo_jquery_215x53.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Displaying contents using a sexy lightBox has become a kind of fashion in the web industry. I have seen many scripts to do this but most of them are complex and bulky. I have come up with a very simple way to do this. Following are the steps to do this.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Download &lt;a href=&quot;http://code.jquery.com/jquery-1.7.1.min.js&quot; target=&quot;_blank&quot;&gt;jquery-1.7.1.min.js&lt;/a&gt;, &lt;a href=&quot;http://jquery.com/demo/thickbox/thickbox-code/thickbox.js&quot; target=&quot;_blank&quot;&gt;thickbox.js, &lt;/a&gt;&lt;a href=&quot;http://jquery.com/demo/thickbox/thickbox-code/thickbox.css&quot; target=&quot;_blank&quot;&gt;thickbox.css&lt;/a&gt; and &lt;a href=&quot;http://jquery.com/demo/thickbox/images/loadingAnimation.gif&quot; target=&quot;_blank&quot;&gt;loading image.&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Insert the following code between the &amp;lt;head&amp;gt;&amp;lt;/head&amp;gt; tag.&lt;/li&gt;
&lt;/ol&gt;
&lt;pre class=&quot;normal&quot; style=&quot;background-color: #999999; color: black;&quot;&gt;&lt;code class=&quot;html&quot;&gt;&amp;lt;&lt;span class=&quot;tag&quot;&gt;script &lt;/span&gt;&lt;span class=&quot;attribute&quot;&gt;type&lt;/span&gt;=&lt;span class=&quot;string&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt; &lt;span class=&quot;attribute&quot;&gt;src&lt;/span&gt;=&lt;span class=&quot;string&quot;&gt;&quot;path-to-file/jquery.js&quot;&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class=&quot;tag&quot;&gt;script&lt;/span&gt;&amp;gt;
&amp;lt;&lt;span class=&quot;tag&quot;&gt;script &lt;/span&gt;&lt;span class=&quot;attribute&quot;&gt;type&lt;/span&gt;=&lt;span class=&quot;string&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt; &lt;span class=&quot;attribute&quot;&gt;src&lt;/span&gt;=&lt;span class=&quot;string&quot;&gt;&quot;path-to-file/thickbox.js&quot;&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class=&quot;tag&quot;&gt;script&lt;/span&gt;&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: #999999; color: black;&quot;&gt;&lt;code class=&quot;html&quot;&gt;&amp;lt;&lt;span class=&quot;tag&quot;&gt;link &lt;/span&gt;&lt;span class=&quot;attribute&quot;&gt;rel&lt;/span&gt;=&lt;span class=&quot;string&quot;&gt;&quot;stylesheet&quot;&lt;/span&gt; &lt;span class=&quot;attribute&quot;&gt;href&lt;/span&gt;=&lt;span class=&quot;string&quot;&gt;&quot;path-to-file/thickbox.css&quot;&lt;/span&gt; &lt;span class=&quot;attribute&quot;&gt;type&lt;/span&gt;=&lt;span class=&quot;string&quot;&gt;&quot;text/css&quot;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: #999999;&quot;&gt;&lt;code class=&quot;html&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;string&quot;&gt;&amp;nbsp;&lt;/span&gt; &lt;span class=&quot;attribute&quot;&gt;media&lt;/span&gt;=&lt;span class=&quot;string&quot;&gt;&quot;screen&quot;&lt;/span&gt; /&amp;gt;&lt;/code&gt;&lt;code class=&quot;html&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code class=&quot;html&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; 3. To display any image in lightBox  simply use the following code.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #999999; color: black;&quot;&gt;
&amp;lt;a href=&quot;image path&quot;&amp;nbsp; class=&quot;thickbox&quot;&amp;gt;&amp;lt;img src=&quot;image path&quot; width=&quot;200&quot;&amp;nbsp;&amp;nbsp; border=&quot;0&quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 4. To display your content in lightBox , first create a page for the contents you wish to display e.g. test.php then use the following code.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #999999; color: black;&quot;&gt;
&amp;lt;a href=&quot;test.php?TB_iframe=true&amp;amp;height=180&amp;amp;width=390&amp;amp;modal=true&quot; class=&quot;thickbox&quot;&amp;gt;CLICK HERE&amp;lt;/a&amp;gt;&lt;/div&gt;
&lt;br /&gt;
In the Image lightBox  the close window button appears automatically but for the content lightBox  you need to add it manually using the code&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #999999; color: black;&quot;&gt;
&amp;lt;a href=&quot;javascript:void(0)&quot; onClick=&quot;self.parent.tb_remove();&quot;&amp;gt;Close&amp;lt;/a&amp;gt;&lt;/div&gt;
&lt;br /&gt;
I hope this tutorial will be helpful for many developers. Enjoy.&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gubhaju-phpwizard.blogspot.com/feeds/6967188996978275379/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2012/02/lightbox-for-displaying-contents-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/6967188996978275379'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/6967188996978275379'/><link rel='alternate' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2012/02/lightbox-for-displaying-contents-and.html' title='LightBox for displaying contents and image using a common jquery plugin'/><author><name>Manny</name><uri>http://www.blogger.com/profile/12227417960255585387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1407993523856846079.post-7400911805241801988</id><published>2012-02-20T16:10:00.003+00:00</published><updated>2012-02-27T16:34:48.685+00:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ecommerce"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="Smarty"/><title type='text'>Experience an Ajax based ecommerce solution with PrestaShop</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Last week I was asked by my client to develop an ecommerce site using prestashop. When I used it I found it amazing. The best thing I liked about it is its smooth AJAX based functionality in both backend and frontend. PrestaShop can be downloaded from the following link:&lt;/div&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.prestashop.com%20/&quot; target=&quot;_blank&quot;&gt;http://www.prestashop.com &lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEim3kI0GmMUOFOaq-MgG7gBYg0HgesIe3z-j-J6MEIMFcib-v7pC3sXSQ9nTq1bMv1kp0ddxFLghNlyca9PCpo8_X36G72CrcKMKYoTiE24K3xOMG0Eh0sQhZnWXLEqchIDDJDUBhwuYQY/s1600/logo.png&quot; /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Another best thing about PrestaShop is that it supports wide range of payment gateways such as paypal, google checkout, moneybookers, ideal and athorize.net. Developers will no longer have to download api for each payment gateway and waste their time on testing. PrestaShop is based on Smarty templates and the script are written in MVC architecture.  PrestaShop was named the Best Open Source E-Commerce Application in the Packt 2010 Open Source Awards and the Best Open Source Business Application in the 2011 Open Source Awards. PrestaShop supports about 41 languages and has plenty of addons and templates.&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gubhaju-phpwizard.blogspot.com/feeds/7400911805241801988/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2012/02/experience-ajax-based-ecommerce.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/7400911805241801988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/7400911805241801988'/><link rel='alternate' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2012/02/experience-ajax-based-ecommerce.html' title='Experience an Ajax based ecommerce solution with PrestaShop'/><author><name>Manny</name><uri>http://www.blogger.com/profile/12227417960255585387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEim3kI0GmMUOFOaq-MgG7gBYg0HgesIe3z-j-J6MEIMFcib-v7pC3sXSQ9nTq1bMv1kp0ddxFLghNlyca9PCpo8_X36G72CrcKMKYoTiE24K3xOMG0Eh0sQhZnWXLEqchIDDJDUBhwuYQY/s72-c/logo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1407993523856846079.post-7717377154707295602</id><published>2012-02-10T16:16:00.000+00:00</published><updated>2012-03-03T14:39:17.776+00:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IT Service Management"/><category scheme="http://www.blogger.com/atom/ns#" term="ITIL"/><title type='text'>My MSc Research</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Research Question: Why do programmers avoid frameworks in favor of ad hoc program development and how can they be motivated towards using frameworks to minimize the risks of projects?&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
The research results will be published soon &lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgX7ccybsLczVDFv3bBHTehtYXgnH0-3dqfIelyPdsEu1mSZS9yuLuGx-5-auAq2Wh-nv50vfAD3CIMW13CuUzDRSAxMuWhfJ5u4tP5BLYOEzHaGRRD5xtVPDihEX2KydAFdJD57kXXSHE/s1600/New+Picture.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;224&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgX7ccybsLczVDFv3bBHTehtYXgnH0-3dqfIelyPdsEu1mSZS9yuLuGx-5-auAq2Wh-nv50vfAD3CIMW13CuUzDRSAxMuWhfJ5u4tP5BLYOEzHaGRRD5xtVPDihEX2KydAFdJD57kXXSHE/s400/New+Picture.bmp&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gubhaju-phpwizard.blogspot.com/feeds/7717377154707295602/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2012/02/my-msc-research.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/7717377154707295602'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/7717377154707295602'/><link rel='alternate' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2012/02/my-msc-research.html' title='My MSc Research'/><author><name>Manny</name><uri>http://www.blogger.com/profile/12227417960255585387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgX7ccybsLczVDFv3bBHTehtYXgnH0-3dqfIelyPdsEu1mSZS9yuLuGx-5-auAq2Wh-nv50vfAD3CIMW13CuUzDRSAxMuWhfJ5u4tP5BLYOEzHaGRRD5xtVPDihEX2KydAFdJD57kXXSHE/s72-c/New+Picture.bmp" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1407993523856846079.post-2295809183500955441</id><published>2012-02-08T13:11:00.000+00:00</published><updated>2012-02-27T16:33:17.319+00:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IT Service Management"/><category scheme="http://www.blogger.com/atom/ns#" term="ITIL"/><title type='text'>What is ITIL?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;Information in organisations is critical and always 
has been.&amp;nbsp; However, due to the increase in scale of organisations; 
managing and organising information has become far more complex.&amp;nbsp; To
 handle the increase in volume and complexity of this information and 
the systems that manage it, standards and frameworks have been 
developed.&amp;nbsp; The aim of these 
frameworks is to provide consistency in an attempt to simplify processes
 and establish and share methods of ‘best practice’.&amp;nbsp; This topic will focus on the current dominant framework that exists in the domain of IT service management.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span lang=&quot;EN-GB&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjF4w1_TT7Wl6bWEPy7vPPkTIgbJrScFxmED8wcfQy5YFoPo8U_9mu6Ql1A4ZL_p7-QPPrpkZsey2U7lW-EEqRN-geWzVHBwbMdPxjesK1Ol1TzJWEdCP64mbJDtzA1pisn02V8cxuUgOQ/s1600/xid-18423_1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjF4w1_TT7Wl6bWEPy7vPPkTIgbJrScFxmED8wcfQy5YFoPo8U_9mu6Ql1A4ZL_p7-QPPrpkZsey2U7lW-EEqRN-geWzVHBwbMdPxjesK1Ol1TzJWEdCP64mbJDtzA1pisn02V8cxuUgOQ/s400/xid-18423_1.jpg&quot; width=&quot;400&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;Information 
Technology Infrastructure Library (ITIL) was developed in the late 1980s
 by The Office of Government Commerce in conjunction with private sector
 organisations worldwide.&amp;nbsp; It provides guidance on the planning, 
delivery and management of quality IT services to support organisational
 needs. &amp;nbsp;ITIL provides a comprehensive, consistent and coherent set of 
processes for IT management and is underpinned by formal qualifications 
and an associated training scheme.&amp;nbsp; ITIL is still owned by the&lt;/span&gt;  &lt;span lang=&quot;EN-GB&quot;&gt;UK&lt;/span&gt;  &lt;span lang=&quot;EN-GB&quot;&gt;government.&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;ITIL v3 was   released in May 2007 and&amp;nbsp;is bases around 5 key areas that   translate into 5 five books:&amp;nbsp;&lt;/span&gt; &lt;br /&gt;
&lt;ol type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt;&quot;&gt;     &lt;span lang=&quot;EN&quot;&gt;Service     Strategy&amp;nbsp;&lt;/span&gt;   &lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt;&quot;&gt;     &lt;span lang=&quot;EN&quot;&gt;Service     Design&amp;nbsp;&lt;/span&gt;   &lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt;&quot;&gt;     &lt;span lang=&quot;EN&quot;&gt;Service     Transition&amp;nbsp;&lt;/span&gt;   &lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt;&quot;&gt;     &lt;span lang=&quot;EN&quot;&gt;Service     Operation&amp;nbsp;&lt;/span&gt;   &lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt;&quot;&gt;     &lt;span lang=&quot;EN&quot;&gt;Continual Service     Improvement&lt;/span&gt;   &lt;/li&gt;
&lt;/ol&gt;
&lt;span lang=&quot;EN&quot;&gt;ITIL v3 is recognised as an international standard&lt;/span&gt;  &lt;span lang=&quot;EN&quot;&gt;ISO&lt;/span&gt;/&lt;span lang=&quot;EN&quot;&gt;IEC20000.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gubhaju-phpwizard.blogspot.com/feeds/2295809183500955441/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2012/02/my-portfolio.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/2295809183500955441'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1407993523856846079/posts/default/2295809183500955441'/><link rel='alternate' type='text/html' href='http://gubhaju-phpwizard.blogspot.com/2012/02/my-portfolio.html' title='What is ITIL?'/><author><name>Manny</name><uri>http://www.blogger.com/profile/12227417960255585387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjF4w1_TT7Wl6bWEPy7vPPkTIgbJrScFxmED8wcfQy5YFoPo8U_9mu6Ql1A4ZL_p7-QPPrpkZsey2U7lW-EEqRN-geWzVHBwbMdPxjesK1Ol1TzJWEdCP64mbJDtzA1pisn02V8cxuUgOQ/s72-c/xid-18423_1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry></feed>