Hi again,
I\'m using the below script (which someone on here kindly gave me) to call certain characters from a file. Trouble is, if I ask for more characters than there are in the file, the rest become spaces. Is there a way to call ONLY characters and stop after that, i.e. no spaces?
Hope this makes sense, but of a novice, see.
<?php
$fch = \"$username.$offset.htm\";
$fp = fopen($fch, \"r\");
$file_content = fread($fp, filesize($fch));
$a_part_of_the_file = substr($file_content, 0, 8);
fclose($fp);
echo $a_part_of_the_file;
?>
Thanks in advance,