PHP ain't so bad...

Purdy on 2002-04-19T12:44:44

I'm about done with a project I've been working on (not the Linux router - another project): a "Web Clipping Application", for wireless Palm handhelds. Developing a WCA is extremely easy, except for the design details, where you have to worry about greyscale/4-bit images, pixelated fonts and the small display. But I'm proud to say we've overcome that and the product is about ready.

On the server side, I used PHP to whip out some dynamic pages to output Palm-friendly HTML pages - I'm coming to find PHP an invaluable tool, especially with my Web endeavours. I've given up on mod_perl & HTML::Mason - they're just too complicated to setup and master. I do love the Perl syntax though ... perhaps PHP will someday allow multi-language parsing in their Zend engine and support Perl. Of course, when they do that, it will most likely be Perl 6, which I'll will be looking at an adoption curve.

Jason


mod_perl & Mason too hard?

autarch on 2002-04-19T16:01:45

Ok, I'll skip the mod_perl part, but for Mason, you just add this to your httpd.conf:


    PerlSetVar MasonCompRoot /my/doc/root
    PerlSetVar MasonDataDir /some/other/dir
    <FilesMatch "*.mason">
        SetHandler perl-script
        PerlHandler HTML::Mason::ApacheHandler
    </FilesMatch>


Is that so hard?

Re:mod_perl &amp; Mason too hard?

Purdy on 2002-04-19T17:40:43

yeahhhh ... if only it were that easy. The big difficulty is getting it setup, which requires mod_perl 1.21_07 (or some version above what I have already), and I can't re-compile the httpd b/c the box it's on has some proprietary software that's tied to the particular httpd I have.

Jason

Re:mod_perl &amp; Mason too hard?

autarch on 2002-04-19T17:51:26

Yeah, that I can't help you with very easily.

You could compile _another_ apache/mod_perl server.

If you already have a two-tier setup done then it's a piece of cake. Just add extra rewrite rules for the new (2nd) apache/mod_perl server.