Posts under PHP

PHP Programming: The difference between require() and include()

advertisement

php, programming, php programming, open source, php function
Many friends ask me what’s the difference between require() and include(). Here is the explaination from PHP manual.

From PHP manual:-

require() and include() are identical in every way except how they handle failure. include() produces a Warning while require() results in a Fatal Error. In other words, don’t hesitate to use require() if you want a missing file to halt processing of the page. include() does not behave this way, the script will continue regardless. Be sure to have an appropriate include_path setting as well.

Continue reading PHP Programming: The difference between require() and include() »

Speed Up and Save Your Website Bandwidth with GZip Compression

advertisement

php, open source, open source software Why GZip compression can speed up your website?
With GZip compression enable it will compress data being sent out from your Web server, and have the browser decompress this data on the fly, thus reducing the amount of data sent and increasing the page display speed.

Continue reading Speed Up and Save Your Website Bandwidth with GZip Compression »