Page 1 of 1

PHP and Perl

Posted: Mon Apr 29, 2002 11:12 pm
by Goat
I'm a newbie to PHP and i've been teaching myself PHP and MySQL for about a month now and I've come up with this question. Is it possible to use PHP within a Perl script? Basicly my situation is this. I'm running a perl based message board (basicly for it's simplicity) and I want to password protect it using a PHP script I've got set up (VnPortal). The only thing I need to placein the perl script are some header references to the files used by VnPortal. When I try and place them into the Perl script I continually come up with an Internal 500 error. What's up?

Posted: Tue Apr 30, 2002 12:02 am
by jason
You can run a command like system() or something of the like that runs a command line to do the stuff, but that isn't good.

Generally, if you are using Perl, use Perl. If you want to use PHP, move the forums to PHP.

I would not recommend it.

Posted: Tue Apr 30, 2002 1:04 am
by Brian
Yeah... you could probably pull it off, but I would not recommend it. It is probably very rarely a good idea to use PHP and Perl together in the same application like that.

Posted: Tue Apr 30, 2002 1:07 am
by Goat
I think i'm just going to go ahead and write my own board in php to fix the problem...thanks for the replies!