I want to display the content as is, or display the raw hex (using hexdump with r switch) if the content is not plaintext.
<pseudocode>
Code: Select all
if (file content is textual){
$data = readfile($srcfile); //read in as text
} elseif (file content is not textual)
$data = hexdump(readfile($srcfile,b),,r); //read in data as hex
}
XYplorer Beta Club