in this section of code that Ray sent me how can it be modified to print actual ASCII spaces to the browser instead of printing the non-ASCII characters?
Here is a section of the code:
// READ THE FILE A CHARACTER (OR A BYTE?) AT A TIME
$fpr = fopen($url, 'r');
if (!$fpr) trigger_error("Unable to read $url", E_USER_ERROR);
$cnt = 0;
while (!feof($fpr))
{
$cnt++;
$chr = fgetc($fpr);
echo PHP_EOL . "$cnt $chr ";
if (ord($chr) < 128) echo 'ASCII';
}
thanks,
Michael
Ray, I was just curious as to whether or not if the character wasn't in ascii format that I could print the ASCII spaces to the browser like you did in the getc routine you sent me. I was just curious about whether or not if the QT half-8 character could be replaced with the ASCII space then I could the result of the Bible verse from the browser, put it into a text file and then use the explode to see if that would work. Just thought I would tinker around with the program until you get back with me on the application you are working on for me.
Thanks,
Michael