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 ).

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?

{ 27 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?

{ 0 comments }

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 }

I own a small business website. However, bots started to abusing my forms such as contact.php. How do I stop bots bots from abusing my site? How do I tell if PHP form is submitted by a person or a script?

{ 25 comments }