Category: php
PHP Provides str_rot13 function to rotate alphabetic characters by 13 places. However, there is no str_rot47 function to rotate 47 places over a larger mapping table. The following is …
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 …