April 22nd in PHP Scripts by pbu .

[Fix] Fatal error: Unable to read 25447 bytes in index.php

I purchased a commercial software which needed Zend optimizer since it was encoded one. I uploaded all my scripts to my linux server and suddenly i got this error when accessing the site.

Fatal error: Unable to read 25447 bytes in index.php

I did have Zend optimizer installed in our cpanel server and didnt know how to fix this problem. Sooner we found the culprit was FTP software.

Fix:

Since the scripts are encoded, you have to upload the php files in BINARY mode and not in ASCII mode. The ftp software filezilla doesnt know it so i have to manually set to binary mode before upload.

Once this is done, the problem got solved!

Similar Posts:

Share and Enjoy:
  • del.icio.us
  • digg
  • StumbleUpon
  • Technorati
  • DZone
  • Facebook
  • FriendFeed
  • Reddit
  • RSS
  • Twitter

Leave A Comment.