The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Warning: virtual() [function.virtual]: Unable to include 'cgi-bin/in.cgi'

Discussion in 'General Discussion' started by its_joe, Sep 10, 2008.

  1. its_joe

    its_joe Well-Known Member

    Joined:
    Feb 15, 2007
    Messages:
    134
    Likes Received:
    0
    Trophy Points:
    0
    Hello,

    We have CentOS release 4.6 and WHM 11 on server. Along with it we have Apache/2.0.63 on server.

    For one of our website, on the index page we get following error:

    Warning: virtual() [function.virtual]: Unable to include 'cgi-bin/in.cgi' - request execution failed in /home/abc/public_html/index.php on line 6

    and the content of the index.php page is as follows:
    ===============================
    <?php
    $url[1]="1.php";
    $url[2]="2.php";
    $rx=sizeof($url);if(isset($sdr)){if(($sdr<=0)or($sdr>=$rx)){$sdr=$rx;}$x=$sdr;}else{$x=$rx;}$x++;if($x>$rx){$x=1;}setcookie("sdr", $x,time()+100000, "/");
    if(isset($dmr)){$dmr=addslashes($dmr);$inw= "cgi-bin/in.cgi?dm=".$dmr;}else{$inw="cgi-bin/in.cgi";}
    virtual($inw);
    include($url[$x]);
    ?>
    =====================================
    We have not disable virtual function in php.ini

    Please tell us how to resolve this error.

    waiting for reply.

    its_joe
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    You may wish to refer to the documentation for this function, especially the user-contributed comments:

    http://php.net/virtual

    From a server-troubleshooting perspective, is PHP running as a module, SuPHP, CGI... etc?
     
Loading...

Share This Page