Skip to main content

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

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account