Re: Call perl from PHP

From: Date: Fri, 28 Jun 2002 06:18:00 +0000
Subject: Re: Call perl from PHP
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-85645@lists.php.net to get a copy of this message
I have tried exec(), passthru() but non of these return the array values. The only function that return me anything is system(), I think it returns the process number. What I want to do is able to query the perl script, and have data returned to PHP. Normal querying such as http://www.mydomain.com/check.pl?userid=$userid&pass=$pass after quering this script, it returns me other values as well. "Scott Carr" <scarr@progbits.com> wrote in message news:1025092392.3d19ab28ecd20@progbits.com... > What wrong with: > > exec('perl {script name}', $array); > > ? > -- > Scott Carr > OpenOffice.org > Documentation Maintainer > http://documentation.openoffice.org/ > > > Quoting Roman Neuhauser <neuhauser@bellavista.cz>: > > > > To: php-dev@lists.php.net > > > From: "Chhai Thach" <chhait@frontierisp.com> > > > Date: Tue, 25 Jun 2002 11:03:09 +0930 > > > Subject: [PHP-DEV] Call perl from PHP > > > > > > Does anyone know how to call a perl script from a php file and get the > > > returned data back to the PHP file? > > > > > > I have tried using virtual() but this doesn't work because the Perl > > script > > > doesn't containt any HTML headers. > > > > > > I know to call a perl form from another perl you use something long this > > > line: > > > new HTTP::Request('POST', > > > 'https://myscript/script.pl'); > > > > > > Is there something similar in PHP, please help. Appreciated. Thanks > > > > Have you seen http://sourceforge.net/projects/phperl/ > > ?? > > > > -- > > FreeBSD 4.6-STABLE > > 6:16PM up 2 days, 15:16, 11 users, load averages: 0.48, 0.55, 0.26 > > > > -- > > PHP Development Mailing List <http://www.php.net/> > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > ------------------------------------------------- > This mail sent through IMP: http://horde.org/imp/

« previous php.dev (#85645) next »