PHP Labs: Scripts, code and tutorials
I have joined Google and none of the tools on eKstreme.com are official Google tools nor are they endorsed by Google. See this.
Welcome to the PHP Labs! Here you will find bits and pieces of code that will help you create more elaborate PHP scripts. The complete list is below, and it will keep growing. Any ideas or code snippets are welcome! Please send them in. Enjoy!
Free Scripts
eKstreme.com is home to many free PHP scripts written by me. In no particular order:
- Website Button Maker to make website buttons of any size, especially like this one:

Code Snippets
- How to send an email using PHP. A bit of code telling you how to send an email from your PHP scripts.
- PHP hostname to get server's real name. A single line of code to know your server's real name.
- Dynamic image creation. A basic code fragment to create a JPEG image on-the-fly in PHP.
- Search Engine Bot Authentication. Search engines like MSN and Google send out bots to retrieve web pages. How do you for sure that a request is one of these bots and not a spoof?
Tutorials
- 301 redirection code examples. This is Part 2 of a two-part tutorial about 301 redirection.
- Geotargeting tutorial. Explains how to set up and use geotargeting on a website. Complete with code examples.
Some code shown not working? See the code help page please.

