Browsing articles in "PHP"
Feb
13
2012

Call to undefined function mb_detect_encoding()

PHP Icon

If you get the error Call to undefined function mb_detect_encoding() you are missing the php-mbstring extension.

May
25
2011

Fatal error: Class ‘DOMDocument’ not found

PHP Icon

Fix for Fatal error: Class ‘DOMDocument’ not found in PHP

May
7
2011

Notice: Undefined index: page and Notice: Undefined index: ipp in Pagination Class

PHP Icon

Article how to fix Notice: Undefined index: page and Notice: Undefined index: ipp in Pagination Class

Feb
28
2011

Set timezone in .htaccess for PHP

PHP Icon

Article on how to set the timezone in the htaccess file for PHP

Jan
8
2011

Install Memcached on Fedora 14 in the Rackspace Cloud

Memcached Logo

Install Memcached and the PHP Library on a Fedora 14 server

Nov
8
2010

strtotime with UK date

PHP Icon

Info on how to use strtotime with UK date formats

Sep
30
2010

Warning: strtotime() [function.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

Getting this in a PHP site I am writing, to fix add this to a common include on your PHP page: date_default_timezone_set(‘UTC’);

Sep
30
2010

Show Errors in PHP using .htaccess

Simply add this to your .htaccess file to show errors in PHP, to surpress them simply change on to off # supress php errors php_flag display_startup_errors on php_flag display_errors on php_flag html_errors on

Sep
3
2010

Fatal error: Call to undefined function mysqli_connect()

Got this error when trying to use MySql in a PHP page on a Fedora install. What had happened is PHP wasn’t installed with MySql support. However it is simple to fix. Open up PuTTY and enter in the following: yum install php-mysql /sbin/service httpd restart

Sep
3
2010

Install Apache, MySql and PHP on Rackspace Cloud Fedora Server

Fedora

Article detailing how to install Apache, MySQL and PHP on a Rackspace Cloud Fedora instance

Pages:12»