Fatal error: Unable to read X bytes in /home/user/public_html/myfile.php on line Y
If you are using assistive technology and are unable to read any part of the HostMonster website, or otherwise have difficulties using the HostMonster website, please call 866-573-HOST and our customer service team will assist you.
Skip to main content

HostMonster Web Hosting Help

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

This means that the file was uploaded as ASCII text (plain text) instead of as a binary file (1's and 0's). Some PHP codes require that it is transfered as a binary file and not as plain text. Setting your FTP client to force Binary mode, instead of allowing it to auto-detect the mode, will fix this problem 90% of the time.

Refer to the FTP client's website for specific instructions.

Knowledgebase Article 181,902 views bookmark tags: fatal php read unable


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

Available PHP Memory Exhausted.
Knowledgebase Article 296,814 views tags: exceeded fatal memory php wordpress

WordPress Error: Unable to create directory /wp-content/uploads/2009/mydir/summer/ Is its parent directory writable by the server?
Knowledgebase Article 238,058 views tags: create unable wordpress

Script executed with a cron job requires a specific php.ini file to be used.
Knowledgebase Article 223,255 views tags: command cron cronjob crontab custom line optimizer php zend

Related Help Content

This article will explain how to add a PHP handler to your .htaccess files. This is useful if you want to customize the version of PHP that runs your PHP files.
Knowledgebase Article 400,345 views tags: htaccess php

How to customize your html or php error pages.
Knowledgebase Article 161,437 views tags: errors php

Why can't I log into my PHP-Nuke based website?
Knowledgebase Article 157,580 views tags: nuke php

This article will outline which PHP PEAR Packages are installed and how you can install additional PHP PEAR Packages.
Knowledgebase Article 188,774 views tags: package pear php

In the newer versions of PHP, they have included a new directive to control and handle remote includes. We disable this option, by default, which may affect some of your PHP scripts.
Knowledgebase Article 178,694 views tags: include php remote url

Website shows a server 500 error, what can I do to fix it?
Knowledgebase Article 713,648 views tags: error

How do I change the PHP environment for my site with php.ini?
Knowledgebase Article 804,921 views tags: configuration ini php server

How do I turn the display_errors flag on for php?
Knowledgebase Article 228,253 views tags: display errors php

This site utilizes JavaScript to function correctly. Looks like it's disabled on your browser. Please enable it for your best experience.

For instructions on enabling JavaScript, click here