With PHP, you just put the code inside the HTML, which isn't any better
than putting the HTML inside the code.

The best solution is to move to a templated system.  HTML::Mason can do
this, as can many other template-only systems (Template::Toolkit,
CGI::FastTemplate, Text::Boilerplate, etc.).  Have a look on CPAN.

PHP also has some packages that allow templating, but if you're used to
Perl, there's a strong probability that you will hate PHP.

Michael


At 05:57 PM 03/05/2000 -0400, [EMAIL PROTECTED] wrote:
>So, if you use PHP, you normally wont consider using Perl? My 
>web site is all Perl using CGI.pm. Most of it has has HTML 
>embedded in it. I would like to separate that out so I can edit and 
>tidy up using Dream Weaver 3. Also I just started developing 
>another using NT/IIS and ASP. I am now thinking of moving it to 
>PHP / Perl on BSD.
>Any suggesions?
>
>On 3 May 00, at 17:30, Thomas_M wrote:
>
>From:                  Thomas_M <[EMAIL PROTECTED]>
>To:                    "Perl-Win32-Users Mailing List"
<[EMAIL PROTECTED]>
>Subject:               RE: PHP and Perl
>Date sent:             Wed, 3 May 2000 17:30:06 -0400 
>Send reply to:         Thomas_M <[EMAIL PROTECTED]>
>
>> Ranga,
>> 
>> PHP is both a language and a dynamic Web content assembly environment. They
>> are meant to be used together. It's much like the relationship between
>> Python and Zope. Or Perl and Mason (www.masonhq.com).
>> 
>> I'm not saying that it can't be done, but if you plan on using Perl you may
>> find it easier in the long run to use Mason (or at least mod_perl and a
>> session module).
>> 
>> On a side note... PHP proponents have long used an argument that the PHP
>> language is much simpler than Perl, but I've noticed that with each
>> successive release of PHP, it becomes more and more like Perl.
>> 
>> --
>> Mark Thomas
>> [EMAIL PROTECTED]
>> 
>> 
>> > -----Original Message-----
>> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>> > Sent: Wednesday, May 03, 2000 5:06 PM
>> > To: Perl-Win32-Users Mailing List
>> > Subject: PHP and Perl
>> > 
>> > 
>> > This may not be the right forum to ask this question. I have just 
>> > started investigating PHP. How does one pass variables between 
>> > PHP and Perl?
>> > 
>> > Ranga Nathan
>> > 
>> > ---
>> > You are currently subscribed to perl-win32-users as: 
>> > [EMAIL PROTECTED]
>> > To unsubscribe, forward this message to
>> >          [EMAIL PROTECTED]
>> > For non-automated Mailing List support, send email to  
>> >          [EMAIL PROTECTED]
>> > 
>> 
>> ---
>> You are currently subscribed to perl-win32-users as: [EMAIL PROTECTED]
>> To unsubscribe, forward this message to
>>          [EMAIL PROTECTED]
>> For non-automated Mailing List support, send email to  
>>          [EMAIL PROTECTED]
>> 
>> 
>
>
>
>---
>You are currently subscribed to perl-win32-users as: [EMAIL PROTECTED]
>To unsubscribe, forward this message to
>         [EMAIL PROTECTED]
>For non-automated Mailing List support, send email to  
>         [EMAIL PROTECTED]
>
-- 
Michael Graham
[EMAIL PROTECTED]

---
You are currently subscribed to perl-win32-users as: [[email protected]]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to