RE: [PHP] Socket Madness !!!!

From: Date: Fri, 06 Jul 2001 08:55:39 +0000
Subject: RE: [PHP] Socket Madness !!!!
Groups: php.general 
Request: Send a blank email to php-general+get-56464@lists.php.net to get a copy of this message
many thanks. i settled for fgetc and checking for a NULL (ascii 0) Steve > -----Original Message----- > From: David George [mailto:david@harksystems.com] > Sent: 05 July 2001 21:50 > To: Justin Farnsworth > Cc: php-general@lists.php.net > 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: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net >

« previous php.general (#56464) next »