RE: PHP Command line question

From: Date: Sun, 09 Jul 2000 19:06:49 +0000
Subject: RE: PHP Command line question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-5624@lists.php.net to get a copy of this message
Well, if I assume nothing about how the other program is triggered, one way would be if PHP could trigger the other program. Then it would be fairly simple to have PHP call the other program and capture the output for examination. This of course assumes a number of things but it does provide 1 idea about how it could be done. Another possibility might be to have the information pipe to a file which is then passed to PHP for examination. Or use a specific directory so PHP would examine all the information in the files in that directory and delete them once completed. Just some thoughts off the top of my head. > -----Original Message----- > Hi there, > > I have compiled PHP standalone. I want to redirect the output of another > program > to PHP. My PHP script must then examine the output and insert the > information in a > database. > > If i redirect the output of a program using |, how can i get my PHP script > to get the > information? > > Thanks in advance, > > Jeroen Geusebroek > >

« previous php.general (#5624) next »