Please support our PHP advertiser: Lunarpages PHP Web Hosting
•
•
Join Date: Jul 2007
Posts: 126
Reputation:
Rep Power: 2
Solved Threads: 2
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
$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
Similar Threads
Other Threads in the PHP Forum
- C++ Reading from a text file (C++)
- Help with a 2D array from a text file (C++)
- read text file (C)
- Reading in a text file string is not complete (Pascal and Delphi)
- how do i read the last line of a text file? (Python)
- reading txt file into array (C++)
Other Threads in the PHP Forum
- Previous Thread: url pass question
- Next Thread: difference of two days
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)






Threaded Mode