support facility
Currently having 63 visitors online.
outsource trial support web hosting support
outsource live chat outsource hosting support 24x7 hosting support
outsource hosting home outsource hosting company outsource hosting technical support outsource hosting 24x7 support outsource hosting plans outsource hosting plans  

Outsource support

Timezone for PHP scripts

ads

If you only want particular PHP scripts (and not shell or other cgi scripts) to use a specific timezone, set the timezone environmental variable in your PHP code like so:


<?
echo "Original Time: ". date("h:i:s")."\n";
putenv("TZ=US/Eastern");
echo "New Time: ". date("h:i:s")."\n";
?>

If you put the line putenv(”TZ=US/Eastern”); in a file that is include()’ed by all your other PHP scripts, then your all PHP scripts will use that timezone.

This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now.





 This post has total : 319 views 

Leave a Reply

Get Adobe Flash playerPlugin by wpburn.com wordpress themes

Home | Company | Testimonials | Infrastructure | Contact | Outsourcing Advantages | How outsourcing works | Web Hosting Support Articles
� 2007. Support Facility.com Privacy and Policy