Home > Web >

PHP

Latest Articles

PHP Traits for Implementing Interfaces

Posted on Aug 13, 2013 | Last Updated Aug 13, 2013

PHP 5.4 introduced traits. Traits are in many ways like code-assisted copy and paste. They are ways to mix code into a class without inheritance. But what are they good for? When should they be used?

Read More

PHP 5.4, trait, interface, abstract, oop

Apache Mod Rewrite and PHP

Posted on Jul 8, 2009 | Last Updated Aug 13, 2013

How to check if Apache's mod_rewrite module is installed on your server directly inside your PHP script.

Read More

apache, mode_rewrite, module, php, apache_get_modules

PHP strip_tags And Standalone XHTML Elements

Posted on Dec 11, 2006 | Last Updated Nov 11, 2011

A solution to strip_tags() not allowing BR, HR and other standalone XHTML elements.

Read More

php, strip_tags, strip_tags(), xhtml, br, hr, standalone elements, self-closing

URL Fragment not Accessible to PHP

Posted on Dec 11, 2006 | Last Updated Nov 11, 2011

The fragment part of a URL or web address is not sent to servers to be accessible by scripting languages such as PHP.

Read More

url fragment, pound, hash, php

Bitwise Math Tool

Posted on Jan 4, 2006 | Last Updated Nov 9, 2011

I programmed a bitwise math tool that checks an integer for stored flags.

Read More

bitwise math, bits, integers, integer, flags, check

Importing Methods from an unrelated Class in PHP5

Posted on Feb 27, 2005 | Last Updated Aug 13, 2013

Sometimes you need to steal a method from an unrelated class without becoming a child. Here's how.

Read More

PHP5, Class, method, import

Unicode Data with PHP 5 and MySQL 4.1

Posted on Nov 11, 2004 | Last Updated Jun 7, 2020

Internationalization is simple with a litlle advanced preparation.

Read More

Unicode, PHP, MySQL

MySQL Sort Order with NULL

Posted on Jul 11, 2004 | Last Updated Aug 17, 2010

Learn how to force NULL values to the end of a sorted list

Read More

MySQL, NULL, ORDER BY

MySQL Arbitrary Ordering

Posted on Jul 1, 2004 | Last Updated Jan 22, 2008

Order your results in any way you choose using the CASE clause

Read More

MySQL, CASE clause, IN clause, Arbitrary Order

Setting bits and flags in PHP

Posted on Feb 25, 2004 | Last Updated Jul 22, 2009

A function for setting bits regardless of current state.

Read More

PHP, bitwise, flags

Comment

No HTML Tags are permitted.

Wall Worm plugins and scripts for 3ds Max