Re: EOF: how to generate one in a string

From: Date: Wed, 08 Jan 2003 10:08:31 +0000
Subject: Re: EOF: how to generate one in a string
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-130739@lists.php.net to get a copy of this message
Marek Kilimajer wrote:
What prog is it anyway.
It is a credit card processing program. It is interactive. You can it, type values in hit return, then ctrl-D and it spits out a status code. If I put all the values in a file I can get the prog to work by doing: #./prog < filename It does not take any command line arguments. So I cannot just do "exec prog $args" since the "args" have to be typed in, one value per line (i.e hit return between values) and then on the last line ctrl-D ... Can anyone think of a way I can get PHP to do this short of writing to a file and the doing "exec 'prog < file_I_wrote'"?? Jc

« previous php.general (#130739) next »