RE: [PHP] embedding a perl script
| From: | Dan Wright | Date: | Fri, 25 Aug 2000 00:42:21 +0000 |
| Subject: | RE: [PHP] embedding a perl script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-13550@lists.php.net to get a copy of this message | ||
I am nealry certain that a PERL script cannot be "embedded" into your PHP
script as it is a "pre-processor" - and I've tried.
I have been pretty succesful using system calls to PERL - even feeding
variables into it and having it return arrays for further chunking. However,
I've also been able ot only slightly modify much of my PERL code to make it
work in PHP.
If you decide to use system calls from within PHP to execute the PERL
scripts, be sure to tweak any Content-type headers you may have been
sending. PHP is probably set up on your system to send the headers
automatically.
Dan
> -----Original Message-----
> From: TaoX { Brian Hinson; } [mailto:brianh@rjsonline.net]
> Sent: Thursday, August 24, 2000 8:32 PM
> To: Dean Hall; dbarber
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] embedding a perl script
>
>
> I think you can have a file with the perl script you want and use
> either the
>
> system or exec functions from php to execute that perl script...
>
> though this probably isn't what you wanted but I have never seen
> perl inside
> of php...
>
> TaoX
> ----- Original Message -----
> From: "Dean Hall" <hall@apt7.com>
> To: "dbarber" <dbarber@sailnet.com>
> Cc: <php-general@lists.php.net>
> Sent: Thursday, August 24, 2000 5:51 PM
> Subject: Re: [PHP] embedding a perl script
>
>
> > > Can anyone give me a small example a embedding a perl script into PHP?
> I
> > > can't seem to find any specific references/examples, though I know it
> can
> > > be done.
> >
> > It can? That's news to me.
> >
> > Dean.
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>