Re: Is there a way to call php functions in perl? and vice versa

From: Date: Thu, 08 Feb 2001 09:37:49 +0000
Subject: Re: Is there a way to call php functions in perl? and vice versa
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-38728@lists.php.net to get a copy of this message
> Is there a way to call php functions in perl? or call perl functions from > PHP codes? <?php exec("/full/path/to/script.pl", $output, $error); while (list(,$line) = each($output)){ echo $line, "<BR>\n"; } if ($error){ echo "OS Error: $error. Usually path/permissions.<BR>\n"; } ?> Perl could call PHP the same way it calls anything (which I can say blithely since I have no clue how that is), but you'll need to install PHP as a stand-alone binary (aka CGI) or make Perl call wget or lynx to surf to a PHP page. [It's kinda like if you had mod_perl installed but *not* Perl itself... PHP compiled as "CGI" is akin to Perl itself. Except better, of course. :-)] -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.general (#38728) next »