PHP Error: Fatal error: Unable to read X bytes in Y.php on line 0

“Fatal error: Unable to read X bytes in Y.php on line 0″ is an error I got once after moving a site to another server. The file was encoded with Zend Optimizer so I could not check what is happening on line 0 that could make any problems.

What SQL queries PHP scripts execute (without looking in the code)?

Sometimes I need to check what SQL queries is PHP script executing, but when code is quite complex (or encoded with Zend Guard or IonCube) it is extremely hard or even impossible to get this information from php files.
So- here’s a nice solution for this problem. It will log all the SQL queries send to the MySQL server in a MySQL table.

Parse error: parse error, expecting `T_PAAMAYIM_NEKUDOTAYIM’

I just got this error. After doing some googling I found an explanation in Wikipedia:

“In PHP, the scope resolution operator is also called Paamayim Nekudotayim, which means “twice colon” or “double colon” in Hebrew. It may be helpful to note that in some cases this error may occur when the $ symbol is not included in the use of a variable.”

 
TopOfBlogs Web Development & Design Blogs