hi guys, i have tried many different ways to do this and havent been getting anywhere, so any help will be much appreciated,
i am simply reading text from a .txt file using the following code
$search= $_POST["search"];
$file= $search . ".txt";
if(file_exists($file)){
$handle = fopen($search . ".txt", 'r');
$data = fread($handle, $file) or error("The file you requested is empty");
}
else{
error ("The file you requested does not exist");
}
and then just printing $data for the results, but the output doesnt present all of the information in the .txt, usualy just printing the first half.
thanks in advance for any help!!