PHP-Preg_match
http://www.functions-online.com/preg_match.html
Javascript
http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_replace3
Css
http://www.w3schools.com/css/tryit.asp?filename=trycss_default
Showing posts with label php. Show all posts
Showing posts with label php. Show all posts
Tuesday, March 6, 2012
Sunday, November 6, 2011
PHP 5.3 : date.timezone
Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Kuala_Lumpur' for 'MYT/8.0/no DST' instead in /var/www/html/fridae/lib/Cake/Cache/Cache.php on line 513 Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Kuala_Lumpur' for 'MYT/8.0/no DST'
To solve this in php 5.3, open the php.ini
$ nano /etc/php.ini
Search [Date], and change the ;date.timezone = to
date.timezone ='Asia/Kuala_Lumpur'
Restart apache
$ /etc/init.d/httpd restart
Refer:http://chrisjean.com/2011/06/24/php-5-3-and-system-timezone-settings/
To solve this in php 5.3, open the php.ini
$ nano /etc/php.ini
Search [Date], and change the ;date.timezone = to
date.timezone ='Asia/Kuala_Lumpur'
Restart apache
$ /etc/init.d/httpd restart
Refer:http://chrisjean.com/2011/06/24/php-5-3-and-system-timezone-settings/
Upgrade php 5.1 to 5.3 in CentOS
Remove PHP package $ sudo yum remove php php-cli php-common php-devel php-gd php-mbstring \ php-mysql php-mcrypt php-pdo php-pear php-pgsql php-xml php-xmlr
Install PHP 5.3
$ sudo yum install php53 php53-cli php53-common php53-devel php53-gd \ php53-mbstring php53-mysql php53-pdo php53-pgsql php53-xml php53-xmlrpc
Restart apache
$ sudo /etc/init.d/httpd restart
Refer:http://chrisjean.com/2011/06/24/upgrade-php-5-1-or-5-2-to-5-3-on-centos/
Subscribe to:
Posts (Atom)