Archive for August, 2007
date.timezone in php.ini for php5
My last post about glitch in time related function for php5 I use a function date_default_timezone_set
For global setting as always use date.timezone in php.ini
just change from :
;date.timezone =Asia/Jakarta
uncomment it first by remove semicolon mark into this :
date.timezone =Asia/Jakarta
save php.ini files and restart apache
try view using phpinfo()
you’re done
date_default_timezone_set for php5 date() fixation
Recent upgrade to php5 in appserv make me confuse when my friend ask me about this code :
print date(’d-M-Y H:i:s’);
hour isn’t accurate
after googling I found about date_default_timezone_set
for full list of supported zone time see this link
http://www.php.net/manual/en/timezones.php
edit the code into
date_default_timezone_set( "Asia/Jakarta" );
// date.timezone = "timezone_here"
print date(’d-M-Y H:i:s’);
work well
Options in FreeBSD ports
some useful options :
make config
make showconfig
make rmconfig
make rmconfig will remove old options saved.
If not work try to clean first
Also useful switch in portupgrade :
portupgrade -aFrR (will download all required file without install)
-i, need your decision.
- Online Marketing Expert by websolution71
- Nonpublic project #283208 by ekoolstra
- banners required asap by wbmasters
- Invitation card design by Formationsuk
- Nonpublic project #283205 by plennon
- Flash and HTML Partner Wanted by asonofhaiti
- Nonpublic project #283204 by maisaiah
- Michelle 01 by longterm1947
- Nonpublic project #283198 by ekoolstra
- Website similar to Yelp by gritz
