RE: [PHP] Socket Madness !!!!

2001-07-06 Thread Steve Brett
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 > &

Re: [PHP] Socket Madness !!!!

2001-07-05 Thread David George
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 c

Re: [PHP] Socket Madness !!!!

2001-07-05 Thread Justin Farnsworth
Steve Brett wrote: > > fixed it now by adding ascii(10) to reply from server BUT what if i use > fgetc ? > > does anyone know the ascii value for EOF ? > > cheers, > > Steve I think it is four (CTRL-D), viz: | 00 nul| 01 soh| 02 stx| 03 etx| 04 eot| 05 enq| 06 ack| 07 bel| | 08 bs | 09 ht |

RE: [PHP] Socket Madness !!!!

2001-07-05 Thread Steve Brett
fixed it now by adding ascii(10) to reply from server BUT what if i use fgetc ? does anyone know the ascii value for EOF ? cheers, Steve > -Original Message- > From: Steve Brett [mailto:[EMAIL PROTECTED]] > Sent: 05 July 2001 12:58 > To: Php-General (E-mail) > Subjec

[PHP] Socket Madness !!!!

2001-07-05 Thread Steve Brett
Hi, I need to set up a sockets connection to a server that was written in Delphi. Using the following code I can connect to the socket and send a message through it but don't get a reply back ... { echo "Socket opened ok ... sending message"; $message=sprintf("Steve%c He