Thread: Read text file data as Decimal vales using PHP
hi all,
have script have sourced online reads text file , dumps data hexadecimal values on page. how modified output decimal instead?
there better code avail?
code:
`<?php
$handle = @fopen("binarydu.txt", "r");
if ($handle) {
while (!feof($handle)) {
$hex = bin2hex(fread ($handle , 4 ));
print $hex."\n";
}
fclose($handle);
}
?>`
btw, i'm noob![]()
jon
http://nl2.php.net/manual/en/function.hexdec.php
@ least if know you're expecting...
otherwise provide example of in , output?
luck!
Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] Read text file data as Decimal vales using PHP
Ubuntu
Comments
Post a Comment