Category Archives: PHP

Relative Time similar to Facebook & Twitter

Facebook and Twitter have a good way of displaying relative time, that’s natural and easy to read. I came across a piece of code a while back which I have improved upon to create a relative time PHP function – by passing in a … Continue reading

Posted in PHP | Tagged , , , | Leave a comment

PHP5 & Memcached (Example)

In this example I’ll be showing you how to read and write from a memcached server using PHP5, using singleton class design and some basic static functions to connect your servers up before performing the caching. For those of you … Continue reading

Posted in Code, PHP | Tagged , , | 1 Comment

Teamspeak 3: Connection Class

Due to the recently released Teamspeak 3 BETA I have made a connection class in PHP to communicate with the server and fetch back information that I can display in a visual format. I have included a download ZIP for … Continue reading

Posted in Code, PHP | Tagged , | Leave a comment

Basic Tutorial PHP/MySQL (Part 1)

One of the most requested tutorials are those that explain how to connect and use a MySQL database server with PHP code. I have written a basic tutorial showing how to perform MySQL queries with PHP. So you’re wanting to … Continue reading

Posted in Code, PHP | Tagged , , , | Leave a comment

PHPCache Release

I have been working on a small class to cache functions in PHP. I have come up with a class that will allow you to convert any standard function into a cached function with just one line of code. The … Continue reading

Posted in Code, PHP | Tagged , | Leave a comment

Getting Started with PHP Regular Expressions

The main purpose of regular expressions, also called regex or regexp, is to efficiently search for patterns in a given text. These search patterns are written using a special format which a regular expression parser understands.

Posted in PHP | Comments Off

10+ Mod_Rewrite Rules You Should Know

Mod_rewrite is an Apache-based rewrite engine for dynamically rewriting URLs. It’s built into Apache servers natively, though not enabled by default. It’s capable of functions beyond simple rewrites, though, some of which are included below.

Posted in PHP | Comments Off

Discussing PHP Frameworks: What, When, Why and Which?

What is a PHP Framework? PHP is the world’s most popular scripting language for many different reasons – flexibility, ease-of-use, among others – but often times coding in PHP, or any language for that matter, can get rather monotonous and … Continue reading

Posted in PHP, PHP frameworks | Comments Off