Overview Each time when PHP script executes on the server it goes through the following stages: tokenizing, parsing, compilation, and interpretation. PHP opcode caching allows skipping the first 3 stages by storing pre-compiled scripts in shared memory and reusing them. This significantly increases the performance of running PHP scripts. It is important to know […]
PHP error logging for your site is an optional level of logging that can be enabled to log errors that occur with PHP code. There are several reasons you may choose to enable PHP error logging. You may want to enable PHP error logging if you’re actively developing your site to aid in troubleshooting. If […]
A common php error seen, however rarely known or understood is the “headers already sent” error. Which may look similar to this: Why does it happen? Premature end of script headers “actually means”, the script stopped for whatever reason before it returned any output to the web server. This can be an extremely difficult error […]
A common error seen, however rarely known or understood is the “headers already sent” error. Which may look similar to this: Why does it happen? To understand why headers must be sent before output it’s necessary to look at a typical HTTP response. PHP scripts mainly generate HTML content, but also pass a set of HTTP/CGI headers […]