[solved] Executing PHP within Perl served pages

Discussion in 'General' started by dougconran, Jun 13, 2011.

  1. dougconran

    dougconran New Member

    Hi,

    I'm using Litespeed v4.1.1 standard edition, primarily to serve pages generated by Perl scripts.

    I have PHP set up to serve some pages generated by Wordpress which uses PHP.

    I want to be able to use one (or more) of the Wordpress routines within my Perl generated scripts and cannot work out how to achieve this.

    Just embedding <?php ... ?> within the Perl generated pages does not work because they have a .pl extension and so do not connect to the php intepreter. If I change the perl scripts to have a .php extension then, of course, the Perl interpreter does not pick them up.

    How can I do what I want to do?

    TIA

    Doug
    Last edited by a moderator: Jun 15, 2011
  2. webizen

    webizen New Member

  3. dougconran

    dougconran New Member

    Thanks for the pointer. At the moment, though, I'm having problems compiling the module - I get an error during the make process but no clue as to why it is in error.

    In the absence of PHP::Interpreter is there anything else I can do?

    Rgds

    Doug
  4. webizen

    webizen New Member

  5. dougconran

    dougconran New Member

    [RESOLVED] Executing PHP within Perl served pages

    Many thanks for the second suggestion. That is what I did and it works fine.

    Rgds

    Doug

Share This Page