All pastes #894927 Raw Edit

Untitled

public text v1 · immutable
·published 2008-02-07 12:50 UTC
rendered paste body
#!/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";