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 5.7
I saw the error on PHP web page, but it’s actually from Apache httpd server.After searching for solutions on internet, I found it all about… Read More »How to Resolve Error “Failed to open stream: Permission denied”
Check the available version of PHP from base repository.[root@test ~]# yum info php Loaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * base: ftp.ksu.edu.tw * extras: ftp.ksu.edu.tw *… Read More »How to Install Newest LAMP on CentOS 7.2 Minimal (3/4) – Install PHP 7.0 Modules
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 to make… 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 2958It’s not… Read More »How to Resolve Fatal error: Call to undefined function mb_convert_encoding()
‘MYSQL_ATTR_INIT_COMMAND’ Fatal error 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… Read More »How to Resolve Fatal error: Undefined class constant ‘MYSQL_ATTR_INIT_COMMAND’
How to Install Newest LAMP on CentOS 7 Minimal (2/3) – ApacheIn order to get the newest version of PHP (e.g. 5.5 or 5.6) from… Read More »How to Install Newest LAMP on CentOS 7 Minimal (3/3) – PHP
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 will… Read More »Where is the Default Location of ERROR_LOG in PHP?