Category: php
In December, 2006, I wrote a PHP Logo Interpreter . At that time, PHP4 was widely used. Everything in PHP4 is passed by value. For example, if you need …
We can implement (re-invent the wheel) file_put_contents and file_get_contents in PHP to write string to a file and read content as a string from file. file_put_contents is a PHP5 …
August 20, 2012
adsense, algorithms, apache server, implementation, php, programming languages, SEO, technical, tricks, web programming
Checing if a visitor being a search bot is easy. You can use one of the globals, the $_SERVER to check if it contains bot-like string. For example, many …
Sometimes if you want to extract some records from a table you can use the following SQL syntax select * from table order by rand() limit 10 Different SQL …
August 17, 2012
http, I/O File, implementation, multithreading, mysql, php, SEO, software design, tools / utilities, tricks, web programming
In , a PHP-based framework for caching the website is introduced. The sample PHP psudo-code is given. This post will present some additional improvements based on this framework. It …