Category Archives: php

SQL Error: 2006: MySQL server has gone away

So you got an error “SQL Error: 2006: MySQL server has gone away”. Like me if you were wondering where the heck did MySql go away. It was there when the script started. Ok, I am gonna tell you that … Continue reading

Posted in mysql, php | Tagged , , | 2 Comments

Unable to load dynamic library php_mysql.dll

While trying to setup Apache, PHP and MySql on your development machine or server, you may face several hurdles and one of them would be unable to load the mysql library. On my windows development machine, I got a problem … Continue reading

Posted in php, setup, windows | Tagged , , , | Leave a comment

PHP Startup: Unable to load dynamic library php_openssl.dll

You might get the error: “PHP Startup: Unable to load dynamic library php_openssl.dll. The operating system cannot run %1“, when you are trying to start the apache server in the error.log file. Basically what this error is trying to mention … Continue reading

Posted in php, windows | Tagged , , | Leave a comment

How to remove all comments in a file

If you are ever stuck in situation where you want to remove all the comments regardless of what they are in a source file. Here’s a small command that you can issue in VIM. It is for pattern search and … Continue reading

Posted in linux, php, Tips | Leave a comment

php header() function not working!

I was going nuts to find the problem why did the header() function didn’t redirect my page in some instance and did in others! Luckily I found this function ‘headers_sent()’ which will tell you if at any given point any … Continue reading

Posted in php | Leave a comment

Fatal error: Unable to read X bytes in file.php

If you got this error Fatal error: Unable to read X bytes in file.php, then: You have encoded your php files using Zend Encoder and uploaded to the server but gives you this error. This problem occurs due to your … Continue reading

Posted in php, zend | Leave a comment