PHP 5 oddity in Strrchr()

Just noticed that my PHP 5 mirrors the behaviour of php 4 in the functioning of strrchr. string strrchr ( string haystack, string needle ) This function returns the portion of haystack which starts at the last occurrence of needle and goes until the end of haystack. Like PHP4, only the first character of the… Continue reading PHP 5 oddity in Strrchr()

Published
Categorized as PHP

How to use gzip compression on your PHP websites

Why? Compressing weboutput can save valuable bandwidth. The other advantage is that clients will load your websites faster. Gzip compression is supported by all modern browsers, so why not use it. It will compress your pages between 60% and 80%. So you will lower your bandwidth-costs by an average of 70%. Also your server can… Continue reading How to use gzip compression on your PHP websites

Published
Categorized as Apache, PHP