PHP Classes

Hex Editor: Read and write files to edit their data

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 898 All time: 3,936 This week: 80Up
Version License PHP version Categories
hexeditor 1.0.0GNU General Publi...3.0Files and Folders
Description 

Author

This class can read and write files to edit their data.

It can open a file and convert its contents into a corresponding hexadecimal string representation.

The class can also rewrite the file with a hexadecimal representation string of the changed contents.

Innovation Award
PHP Programming Innovation award nominee
March 2009
Number 5


Prize: One downloadable copy of Komodo IDE
Binary files cannot be edited like text files in regular text editors because characters within certain code ranges are not printable.

This class provides a work around for editing binary files. It converts the file contents into lines of hexadecimal text, so it can be easily changed in a text editor.

The class can also convert the changed hexadecimal lines back to binary format before storing the updated binary file contents.

Manuel Lemos
Picture of De Rosa Luigi
Name: De Rosa Luigi <contact>
Classes: 8 packages by
Country: Italy Italy
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files (2)  
File Role Description
Plain text file hex.class.php Class Main Class
Accessible without login Plain text file hex.php Example Example usage

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:898
This week:0
All time:3,936
This week:80Up