@php
$path = 'images/ori-esign.png';
$type = pathinfo($path, PATHINFO_EXTENSION);
$data = file_get_contents($path);
$base64 = 'data:image/' . $type . ';base64,' . base64_encode($data);
$ori = base64_encode($data);
$re = strrev(base64_encode($data));
echo $data;
echo "
";
echo $ori;
echo "
";
echo $re;
@endphp
@php
$myfile = fopen("images/ori-esign.txt", "r") or die("Unable to open file!");
$read = fread($myfile,filesize("images/ori-esign.txt"));
echo $read;
fclose($myfile);
echo "
";
$me = strrev($read);
echo "#################################
";
echo '*************** '.$me.' **********************
';
echo "#################################
";
echo $ori;
echo "#################################
";
@endphp