Jump to content

[SOLVED] getting hex


asmith

Recommended Posts

Hi,

 

I have a file on windows, that I open it with hex editor programs.

 

For example it starts with (in hex editor) :  01 0a 0a 0a 00 ...

 

I want to get these values with php.

 

$filename = "file.CCW";
$handle = fopen($filename, "rb");
$contents = fread($handle, filesize($filename));
fclose($handle);

 

It is not giving me the hex, is there a function for getting the hex out of it?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/140947-solved-getting-hex/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.