Closed Thread
Results 1 to 4 of 4

Thread: Need some help please

  1. #1
    Senior Member D-Orange is an unknown quantity at this point D-Orange's Avatar
    Join Date
    Jun 2001
    Location
    The Netherlands
    Posts
    183

    Question Need some help please

    I've installed a script on my server and need to put a code on my html page. The problem is that I have a php page. Please look at the code and tell me what I have to change to make it work...
    <!--#include virtual="cgi-bin/status.pl?top=10" -->

  2. #2
    striking reality niv has disabled reputation niv's Avatar
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    7,344
    make an .htaccess file in that directory and place:

    AddHandler server-parsed .php

    in there. it might just do it.
    the poster formerly known as needcgispace - NOTHING!
    Obsidian Hosting Networks - Head Admin - Changing the way you play the game.
    URL: http://www.obhost.net/
    IRC: irc.gamesurge.net/obhost

  3. #3
    Pro Member jw is an unknown quantity at this point jw's Avatar
    Join Date
    Oct 2000
    Location
    Texas
    Posts
    285
    You cant have the same extension parsed both by php and ssi, though everything you can do in SSI is available in php. To include that file just use the php code <?php virtual("cgi-bin/status.pl?top=10"); ?>

  4. #4
    Senior Member D-Orange is an unknown quantity at this point D-Orange's Avatar
    Join Date
    Jun 2001
    Location
    The Netherlands
    Posts
    183
    Thank you jw. I knew there was code for SSI in PHP, but I didn't knew the code.

Closed Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts