> 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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]