many thanks.

i settled for fgetc and checking for a NULL (ascii 0)

Steve

> -----Original Message-----
> From: David George [mailto:[EMAIL PROTECTED]]
> Sent: 05 July 2001 21:50
> To: Justin Farnsworth
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Socket Madness !!!!
> 
> 
> Justin Farnsworth wrote:
> 
> >Steve Brett wrote:
> >
> >>does anyone know the ascii value for EOF ?
> >>
> >
> >I think it is four (CTRL-D), viz:
> >
> >| 00 nul| 01 soh| 02 stx| 03 etx| 04 eot| 05 enq| 06 ack| 07 bel|
> >
> Actually EOT is not EOF.  There is no such ASCII character as 
> EOF.  It 
> is a condition not a character.  Different functions that use an EOF 
> condition have different ways of indicating it.
> 
> There are examples at:
> http://www.php.net/manual/en/function.fgets.php
> 
> Here is a link to PHP's feof function:
> http://www.php.net/manual/en/function.feof.php
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: 
> [EMAIL PROTECTED]
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to