a few words about web development

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

Another straight to the point solution
"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.
After doing some research I found that this means the file is corrupted. I copied the file from old site using "Default" transfer mode in my FTP client and this was the reason. So I switched to "Binary" mode and copied the file again. No error this time!
So- if you have this error, please try to copy your original files again with forced "Binary" mode in your FTP client application. If this is not possible and you encoded your files by yourself then try to contact Zend support center.

Comments