Untitled
public text v1 · immutable#!/usr/bin/php
<?php
if (!($f=fopen($argv[1],"r"))) exit;
$o=0; print "\t\"";
while(!feof($f)) {
print "\\x" . bin2hex(fgetc($f));
if (($o++) > 30) {
$o=0;
print "\"\n\t\"";
}
}
fclose($f);
print "\"\n";
#!/usr/bin/php
<?php
if (!($f=fopen($argv[1],"r"))) exit;
$o=0; print "\t\"";
while(!feof($f)) {
print "\\x" . bin2hex(fgetc($f));
if (($o++) > 30) {
$o=0;
print "\"\n\t\"";
}
}
fclose($f);
print "\"\n";