Announcement

Collapse
No announcement yet.

How can I put the CGI scripts on PHP ?

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

  • How can I put the CGI scripts on PHP ?

    I was using a news.pl which is a cgi files. it works fine for few years. now I would like to put this under index.php !

    I try to add the following code :
    <?php
    error_reporting(7);
    $templatesused='forumhome_birthdaybit,error_nopermission,forumhome_pmloggedin,forumhome_we lcometext,forumhome_logoutcode,forumhome_newposts,forumhome_todayposts,forumhome_logincode ,forumhome_loggedinuser,forumhome_loggedinusers,forumhome_lastpostby,forumhome_moderator,f orumhome_forumbit_level1_nopost,forumhome_forumbit_level1_post,forumhome_forumbit_level2_n opost,forumhome_forumbit_level2_post,forumhome,forumhome_unregmessage';
    $loadbirthdays=1;
    $loadmaxusers=1;

    require('./global.php');

    <!--#include virtual="cgi-bin/news.pl"-->

    ........
    .................


    but it doesn't work !! any idea ?

  • #2
    PHP doesn't parse SSI calls. Usually, you need the shtml extension for that.
    You need to call the perl file differently but no idea how since I'm still learning PHP.
    Ueli

    Comment


    • #3
      Originally posted by orca
      PHP doesn't parse SSI calls. Usually, you need the shtml extension for that.
      You need to call the perl file differently but no idea how since I'm still learning PHP.
      Yes. I have a files with shtml extension. it works files. ....

      well. me too I am still learning php !!

      Comment

      Loading...
      Working...
      X