PHP Tutorials & HowTos

PHP is an open-source server-side scripting language and one of the most popular in web development. This section includes PHP programming related syntax, questions and answers ( rss feed ).

Recently, we moved all our static assets to a CDN as described here. However, we have over 8000+ old blog posts and we need to point static images url to our CDN account hosted at http://MyACCOUNT.cloudfront.net/images/ folder. How do I rename all image urls stored in wordpress posts? How do I offload static images to a CDN urls under Wordpress?

{ 24 comments }

How do I view PHP mail() errors? How do I see php mail() error log file under UNIX or Linux?

{ 1 comment }

How do I install memcached cache plugin under UNIX / Linux to speed up my dynamic database-driven wordpress blog by caching data and objects in RAM to reduce the number of times an external data source must be read?

{ 3 comments }

How do I increase upload file limit from 2MB to 10MB under Apache 2 UNIX / Linux web server?

{ 28 comments }

How do I control and put limits on php scripts such as maximum execution time of each script and upload file size?

{ 6 comments }

I‘m trying to configure and install xcache under CentOS / Redhat enterprise Linux v5.4 and getting the following error:

/usr/include/php/ext/date/lib/timelib_structs.h:24:28: error: timelib_config.h: No such file or directory

How do I fix this problem and install xcache?

{ 1 comment }

I‘ve brand new Ubuntu Linux server (Apache + PHP5 FastCGI + Lighttpd image only server) installed for my wordpress, mediawiki and vBullietin software. I can load forntpage but user cannot edit any wiki pages or post anything and I get the following error in log file:

PHP Fatal error: Allowed Memory Size of 20971520 Bytes exhausted (tried to allocate 131072 bytes) in /usr/share/mediawiki/includes/OutputHandler.php on line 81

How do I fix this problem?

{ 2 comments }