This post will show you how to build an AJAX crop image tool using the image cropper control from YUI library and PHP.
Demo
Download sample file
The ImageCropper Control from the YUI library gives you an interactive interface for getting the dimensions to crop an image and using these dimensions in PHP, we can do some cropping.
The [...]
In this post I’ll show you how to create an expanding/collapsing menu like Slashdot left menu used to be, using the YUI library and Dav Glass YUI effects widget.
Preview of the script we are going to build.
The HTML markup for our menu is :
<div id="menu"><h1 id="menu-title">Menu</h1><div id="menu-links"><ul><li>Home</li><li>About</li><li>CSS</li></ul></div></div>
We use 2 div tags, one for holding the [...]
In this short post I’ll show you how to geolocate your visitors with PHP. First of all let’s have a look at what you’ll need :
PEAR GeoIP
MaxMind GeoLite Country
Installing PEAR GeoIP
Using your console or using the command prompt type :
pear install http://download.pear.php.net/package/Net_GeoIP-1.0.0RC1.tgz
Obtaining MaxMind GeoLite Country
The database can be downloaded freely here. Download it and put [...]