HostMonster Web Hosting Help

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


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


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 90,849 views bookmark tags: php unable (updated 2193 days ago)

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. (updated 1542 days ago)
Knowledgebase Article 151,943 views tags: exceeded fatal memory php wordpress

I installed TikiWiki and I am getting the following error: Notice: Only variable references should be returned by reference in /home/~/lib/adodb/ on line 2741 Notice: Only variable refere (updated 2193 days ago)
Knowledgebase Article 59,685 views tags: fantastico php wiki

Script executed with a cron job requires a specific php.ini file to be used. (updated 978 days ago)
Knowledgebase Article 80,179 views tags: command cron cronjob crontab custom line optimizer php zend

Related Help Content

When creating a symlink to a php page, I get a 500 error. I am able to use symlinks to other files and folders fine. (updated 1948 days ago)
Knowledgebase Article 56,406 views tags: link php

Wordpress Error: Unable to create directory /wp-content/uploads/2009/mydir/summer/ Is its parent directory writable by the server? (updated 2158 days ago)
Knowledgebase Article 47,293 views tags: create unable wordpress

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. (updated 35 days ago)
Knowledgebase Article 1,688 views tags: htaccess php

How to customize your html or php error pages. (updated 1067 days ago)
Knowledgebase Article 72,537 views tags: errors php

PHP vs PHP single php.ini vs PHP with FastCGI (updated 1237 days ago)
Knowledgebase Article 152,236 views tags: configuration php server

When setting up an account in Outlook or Outlook Express I get an error saying unable to connect to my SMTP server. (updated 1358 days ago)
Knowledgebase Article 165,869 views tags: blocked connection refused send smtp unable

I'm trying to configure an application (phpList) and it requires that I enter (in config.php) a username and password for a POP3 account to handle bounces. I keep getting a POP3 error and it can't log (updated 2206 days ago)
Knowledgebase Article 73,257 views tags: list mail php phplist

Why will Entropy not search any php file? (updated 2174 days ago)
Knowledgebase Article 61,930 views tags: php search