[PHP] Sockets

2002-02-28 Thread Karl Pietri
Hello i am trying to write a php script to monitor some tcp services running on our network i use fsockopen to open it I use this code to get all the data off the port in one block while(!feof($sock)){ $indata=fgets($sock,256); } the code is roughly like this

[PHP] Re: PHP Daemon

2002-03-06 Thread Karl Pietri
Hey i think you might wanna look up the socket functions in php. you could use them to have one php script talk to another php script. even send the file over that connection (but it wont be secure unless you encode and then send in your php script). fsockopen() has some problems, but you may