Re: [PHP] making php and perl talk to each other...

2002-11-19 Thread 1LT John W. Holmes
If they are on the same machine and executable from the command line, then
you can use exec(), system(), backtics, etc to get the output.

If they are on another machine (or not executable) and only available
through a HTTP interface, then just use fopen to open the address and read
the output from it.

$fp = fopen(http://www.domain.com/file.php,r;);

Then use fread or fget to gather the output. Plenty of examples at
www.php.net/fopen

---John Holmes...

- Original Message -
From: Kelly Meeks [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 19, 2002 11:50 AM
Subject: [PHP] making php and perl talk to each other...


Is there any way to get a php script to grap the output from a perl script?

Can you reverse that and have a perl script grab the output from a php
script?

Kelly


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] making php and perl talk to each other...

2002-11-19 Thread BigDog
If you are running them as commandline apps you can just pipe | the
output to another program

i.e. phpapp.php | perlapp.pl

That should work as long as you deal with the arguments properly...

On Tue, 2002-11-19 at 09:50, Kelly Meeks wrote:
 Is there any way to get a php script to grap the output from a perl script?
 
 Can you reverse that and have a perl script grab the output from a php script?
 
 Kelly
-- 
.: B i g D o g :.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php