in reply to Mason & PHP

I put essentially this very question to colleague on an earlier project, he thought about it a couple of days and came back with way of invoking php from perl and perl from php.

What I remember was (untested):

<? php include("/path/to/script.cgi"); ?>
with the script written not to duplicate headers, but to inject html, ready for inclusion, into the including page. You could even let the wordpress application handle the authentication and only include the limited access cgi script on the protected page.

If I come across my notes on going the other way, I'll update this thread.

-- Hugh

Replies are listed 'Best First'.
Re^2: Mason & PHP
by MCS (Monk) on Feb 16, 2006 at 17:27 UTC

    Thanks all, after considering all possible options I think this is the way I will go. I was hoping to do more of it in Perl but I think PHP may be better suited here. Thanks for all your suggestions.