Happy Valentines Day!

I have a special valentines day random heart generator. This script below will create 100 hearts in random shapes and sizes as a png. Just hit refresh to try it out.

random hearts png

It draws hearts the simple way, two circles and a triangle. As with most scripts the width, height size ect are all pretty easily editable. Enjoy.

PHP Heart Generator that Draws Hearts using GD.


Have a happy fun filled valentines day and enjoy your loved ones.

Creating a distance between cities using the geolite data that I’ve used in the the mapping IP-2-Location. If you look at longitude and latitude points in decimal format instead of the degrees:min:seconds then you can pretty much figure out how you calculate distance. Its the same way you do when you measure the distance between two points on a sphere.

Surprisingly, php has no support that I know of to convert degrees to radians, so I first built that, then the rest is just self explanatory.

“The world is a book and those who do not travel read only one page.” – St. Augustine



	
	

AJAX and PHP combined together in a simple chat message server.  This uses XMLHTTPRequest to call itself with the appropriate GET variables to trigger a read or write to a server-side file named chit-chat.dat




« Previous PageNext Page »