PHP and Perl

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Goat
Forum Newbie
Posts: 11
Joined: Mon Apr 29, 2002 11:12 pm
Contact:

PHP and Perl

Post 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?
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post 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.
Brian
Forum Contributor
Posts: 116
Joined: Thu Apr 18, 2002 5:33 pm

I would not recommend it.

Post 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.
Goat
Forum Newbie
Posts: 11
Joined: Mon Apr 29, 2002 11:12 pm
Contact:

Post 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!
Post Reply