EOF (End of File) character..

From: Date: Sun, 18 Feb 2001 11:16:24 +0000
Subject: EOF (End of File) character..
Groups: php.general 
Request: Send a blank email to php-general+get-40415@lists.php.net to get a copy of this message
Hi... How do I get an EOF character when echo'ing an web page which will be written to an file.?? What I am trying to do is the following. I have an textstring (variable): Then I do the following: header("Content-disposition: filename=CLIEOP03"); header("Content-type: application/octetstream"); header("Pragma: no-cache"); header("Expires: 0"); echo ("$datestring"); ($datastring contains the text) My browser pops up with a box to ask if I want to save this file.. The problem is, that when I save this file it has no EOF character at the end.. Normally I then use my text editor to open the file and then I just save it again to get the needed character.. I generate this file for an application.. The problem is that the application won't accept the file if there is no EOF character.. What is the correct characters to use to get an EOF character?? Thanks for the help.. Bye Bye David

« previous php.general (#40415) next »