punch_card_don has asked for the wisdom of the Perl Monks concerning the following question:
You immeditalely plan to lose the frames, and go to external css for style control and includes for global html element insertion.
Then you discover PHP. With its global "include path" setting, you won't have to worry about relative addressing in your external css links as documents get moved around the site. And with its "include" command, it's bound to be quicker than using SSI for includes. With the possibility of using variables, you can even imagine a scheme of automatically calling sub-section specific includes to vary the header content of pages.
BUT - Your Perl search engine can only output search results in html. So if you want to output search results formatted the same as the php pages, you're going to have to write a really inelegant template parser that does the work of php. The laternative is to show search rsults in a pop-up window, but that's even worse.
And THAT gets you thinking - hey, maybe this initial php/Perl issue is just the tip of the iceberg. Maybe by straying from Perl into PHP, you're setting yourself up for a whole host of nightmares down the road that will ultimately force you to choose between one or the other.
This is NOT Yet Another Perl vs PHP thread. The question is: can Perl and PHP co-exist in harmony on one website in order to exploit the best of both?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using Perl & PHP together
by grep (Monsignor) on Aug 29, 2006 at 21:55 UTC | |
|
Re: Using Perl & PHP together
by Tanktalus (Canon) on Aug 30, 2006 at 04:57 UTC | |
|
Re: Using Perl & PHP together
by harryf (Beadle) on Aug 30, 2006 at 12:40 UTC | |
by harryf (Beadle) on Aug 30, 2006 at 15:02 UTC | |
|
Re: Using Perl & PHP together
by duckyd (Hermit) on Aug 29, 2006 at 21:48 UTC | |
|
Re: Using Perl & PHP together
by perrin (Chancellor) on Aug 30, 2006 at 03:52 UTC | |
|
Re: Using Perl & PHP together
by TGI (Parson) on Aug 30, 2006 at 21:02 UTC | |
|
Re: Using Perl & PHP together
by Anonymous Monk on Aug 31, 2006 at 07:27 UTC | |
|
Re: Using Perl & PHP together
by nmerriweather (Friar) on Sep 04, 2006 at 04:33 UTC |