hi, im having a bit of trouble learning php. My script is working but it is showing the amount of characters i am echoing out....heres the code.
$tireorder = 'you have ordered: '.$tireqty.' tires.' ;
//open the file and check to see if it exists//
$fp = fopen("file.txt","r+");
if(!$fp) {
echo "Your order could not be prossesed at this time";
exit;
}
//writing to a file//
fwrite($fp, $tireorder);
//closing the file//
fclose($fp);
//reading the file//
$data = @readfile("file.txt");
//echoing out//
echo $data;
?>
It writes to the text file - you have ordered: {tire amount} tires. {character amount}
Is there anyway to get rid of the character count?
all suggestions will help thanx :D