apache

Setting right timezone on your PHP.

How do I offset the Timezone for my location, instead of the server timezone?

First of all, setting the timezone at .htaccess level using “SetEnv TZ location” doesn’t work on your php script.

If you are using PHP 5.1 and ealier, add this code within your php

putenv(‘TZ=Europe/London’);   /* change the TZ value accordingly. */

If you are using PHP 5.1 up, add this code within your php script.


date_default_timezone_set(‘Europe/London’);

About author : This original article is property of Top 10 Web Hosting (http://www.top10webhosting.com). List of best web hosting services company offering PHP and MySQL. Compare & save ! on web hosting fee.

Note : Please include author information if you wish to republish this article.

Apache 2 hosting

Apache 2.x hosting offer many new features compare to Apache 1.3.x, including

  • Unix Threading – On Unix systems with POSIX threads support, Apache can now run in a hybrid multiprocess, multithreaded mode. This improves scalability for many, but not all configurations.
  • Better support for non-Unix platforms – Apache 2.0 is faster and more stable on non-Unix platforms such as BeOS, OS/2, and Windows. With the introduction of platform-specific multi-processing modules (MPMs) and the Apache Portable Runtime (APR), these platforms are now implemented in their native API, avoiding the often buggy and poorly performing POSIX-emulation layers.
  • And many more, check http://httpd.apache.org/docs/2.0/new_features_2_0.html
  • Lunarpages coupon

    Lunarpages has recently upgrade their web hosting plan to include option to support Apache 2 hosting. Customer do not have to pay extra for this extra feature.  If you are not sure which one to choose, pick 1.3.x as Apache 1.3 has been very stable for years.

     Lunarpages is also running a promotion now, by entering coupon code “spring“, you will get $48 off your total bill for all 2 years hosting plan. Which also means, the hosting plan is as low as $4.95/month after discount.  Click here to enjoy this discount.

    About author : This original article is property of Top 10 Web Hosting (http://www.top10webhosting.com). List of best web hosting services company offering PHP and MySQL. Compare & save ! on web hosting fee.

    Note : Please include author information if you wish to republish this article.

    BlueHost, Hostmonster software upgraded.

    BlueHost and Hostmonster, the best web hosting listed on my site, has upgraded their 750 servers 2 weeks ago.

     They are forcing all their clients to run Php 5 as default interpreter while keeping Php 4 as an option when Cpanel forcing their user to upgrade to the newer version

     Apache has been upgraded to version 2.2.6 from Apache 1.3.x and MySQL upgraded to version 5.2.5.

     PHP 4 is being deprecated and I believe more and more host will do similar upgrade very soon.

     serverupgrade.jpg

    About author : This original article is property of Top 10 Web Hosting (http://www.top10webhosting.com). List of best web hosting services company offering PHP and MySQL. Compare & save ! on web hosting fee.

    Note : Please include author information if you wish to republish this article.

    Next »