Using PHP includes

PHP is a powerful language that has replaced HTML frames and JavaScript includes in performing the task of including code from one page onto another. Generally PHP includes are used for database connection scripts, functions or classes, to be included …
Continue reading

Using PHP includes

Mod rewrite in 10 minutes

Mod rewrite is the best tool to rewrite those long and complicated urls. So what do you need to use mod_rewrite? The only thing you need to get started is make sure that the mod_rewrite module is installed in your …
Continue reading

Mod rewrite in 10 minutes

Jquery Spy

A while ago i spent a long time looking into how Digg made their original spy script, which i can no longer find on their site. They do however have a flash spy which is pretty cool and can be …
Continue reading

Jquery Spy

Creating an iframe with JavaScript

I want to start this post by saying that I’m not a fan of using iframes, however, sometimes due to restrictions within some development environments it may be the only way to embed content into your site of blog. So …
Continue reading

Creating an iframe with JavaScript

Website thumbnails and snapshots

I thought I’d share this great little site for displaying website thumbnails for free and unbranded! http://snapcasa.com/ Move over Websnapr, Snapcasa’s coming through! Websnapr has somewhat dominated the market over the years with their thumbnail generation service as they boast …
Continue reading

Website thumbnails and snapshots

Caching Dynamic PHP pages easily

I’ve been looking for a solution to cache heavy pages and just serve a static html version for a little while now, and I’ve found a solution in output buffering. Things to think about It’s not a good idea to …
Continue reading

Caching Dynamic PHP pages easily

CSS Reset

It’s a good idea at the start of writing your CSS code to reset the CSS across all browsers to ensure that your page renders more or less the same. By default different web browsers use different values for margins, …
Continue reading

CSS Reset