Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Purdy (2383)

AOL IM: EmeraldWarp (Add Buddy, Send Message)
Yahoo! ID: jpurdy2 (Add User, Send Message)

Bleh - not feeling creative right now. You can check me out on PerlMonks [].

Journal of Purdy (2383)

Friday April 19, 2002
07:44 AM

PHP ain't so bad...

[ #4324 ]
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.


The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • by autarch (914) on 2002.04.19 11:01 (#7291) Homepage Journal
    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

    Is that so hard?
    • 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.


      • 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.