One of my web pages that contains over 2000 POST variables. After submit, only the first 1000 variables were added (or inserted) into the database.… Read More »How to Lift POST Variables Limit in PHP
I saw the error on PHP web page, but it's actually from Apache httpd server. Failed to open stream: Permission denied After searching for solutions… Read More »How to Resolve Error "Failed to open stream: Permission denied"
Here was my case, I saw some text shown in web pages were wider than defined width because some non-space strings were extremely longer than… Read More »How to Treat Long Non-space Strings by Regular Expression in PHP
The direct answer is yes. Both preg_match and preg_replace functions can be multi-byte safe. But at least, you have to meet the following two requirements… Read More »Are preg_match and preg_replace Multi-Byte Safe?
I met this error when I tested my newly installed PHP application server: Fatal error: Call to undefined function mb_convert_encoding() in /var/www/html/xxx.php on line 2958… Read More »How to Resolve Fatal error: Call to undefined function mb_convert_encoding()
MYSQL_ATTR_INIT_COMMAND A PHP error found in the web page below: Fatal error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' in /var/www/html/xxx.php on line 89 In the first place,… Read More »How to Resolve Fatal error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'
In order to get the newest version of PHP (e.g. 5.5 or 5.6) from REMI repository which depends on EPEL, we need to install both… Read More »How to Install Newest LAMP on CentOS 7 Minimal (3/3) - PHP
ERROR_LOG After you set display_errors = Off in php.ini, the error message began to go background. You might want to know where the error message… Read More »Where is the Default Location of ERROR_LOG in PHP?
Web administrators might have some routine jobs to be executed in the background periodically by triggering PHP web pages. Most of the times, the web… Read More »How to Execute PHP Background Jobs by Disconnecting From Clients