Announcement

Collapse
No announcement yet.

Running PHP through the cgi-bin/pl files

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Running PHP through the cgi-bin/pl files

    Is this a good idea and, if so, how do I do it? (as currently it does not work on our server)
    Cheers

    David
    Located in Edinburgh UK

    http://twitter.com/mcfinster

    #2
    This all depends on the job you would like to achieve. Also it's not very clear what integration you would like to use. There are a few options like

    - Embed PHP into perl (e.g. by using http://search.cpan.org/~karasik/PHP-0.11/PHP.pm)
    - Execute PHP by using the backticks operator or exec command
    - Implement a PHP service and do a server to server call

    And there are lot more I believe. It really all depends on the task.

    I hope this helps
    Zoltan
    Actinic Software
    www.actinic.co.uk

    Comment


      #3
      Zoltan,

      Thanks for that. I am rendering all our pages as PHP (via .htaccess) and including a php script on the page. This work fine on the normal html pages but when you enter the cgi-bin it just spews out the raw PHP code. Will any of your suggestions be suitable (not that I am sure I understand them)
      Cheers

      David
      Located in Edinburgh UK

      http://twitter.com/mcfinster

      Comment


        #4
        That's something not easy. The problem in your case is that the cgi generated files are not processed by the php interpreter when the web server sends them. Probably it's something what can be done by tweaking your web server config but that's something what I'm not really good at.
        Zoltan
        Actinic Software
        www.actinic.co.uk

        Comment

        Working...
        X