Fatal error: Unable to read X bytes in /home/user/public_html/myfile.php on line Y

Question
I get this with some of my php files: Fatal error: Unable to read X bytes in /home/user/public_html/myfile.php on line Y
Answer
Many developers encode their work in ioncube, zend, or other encoding frameworks
Because of this, the files they encode must be uploaded in 'binary' format, not text
If uploaded in text format, this is what you will see
You'll need to instruct your ftp client to upload these files in 'binary' format, as opposed to text.
Still need help?
If you need further assistance than this entry provided, please, do open up a support ticket, we are here to help you out
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Why am I getting Server 500 errors with php scripts?

Question Why am I getting Server 500 errors with php scripts? Answer...

What version of PHP are you running?

Question What version of PHP are you running? Answer...

How do I redirect users to another page using PHP?

Question How do I redirect users to another page using PHP?...

How do I use PHP on your host?

Question How do I use PHP on your host? Answer...

How do I turn the display_errors flag on for php?

Question How do I turn the display_errors flag on for php? Answer The fastest way to do...

Powered by WHMCompleteSolution

Our official partners