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 …
Python offers a module urllib and its advanced version urllib2 to allow downloading files from given URLs. The following shows three different ways to access the internet data. #!/usr/bin/env …
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 …
SEO (Search Engine Optimisation) is very popular these days. There are quite a lot of web-based software such as Google analytics, Google webmasters etc. Many companies live on SEO, …
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 …