#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Location
    Minneapolis, MN
    Posts
    48
    Rep Power
    15
    I'm new to using PHP3... How is it possible to add a Server Side include of a CGI script into a PHP3 file? In the past I have renamed the files .shtml to handle this. (I'm accessing a banner script ex: <!--exec#/cgi-bin/bannerad.cgi>.)
    thanks.
    dave
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Location
    Ontario, Canada
    Posts
    498
    Rep Power
    18
    Use the 'virtual()' function. This is the equivalent of <!--#include virtual=""--> and <!--#exec CGI=""--> in SSI for php. If, of course, you're trying to include normal text and/or php scripts, it's wiser to use 'include()'.

    eg; <?php virtual("/cgi-bin/adbanner.cgi");?>

    [This message has been edited by cka (edited April 06, 2000).]

Similar Threads

  1. Perl CGI script, closing pipe to sendmail
    By barryk0306 in forum Perl Programming
    Replies: 0
    Last Post: February 11th, 2004, 09:40 AM
  2. mod_rewrite and Apache 2 cgi script not working
    By jroamo in forum Apache Development
    Replies: 0
    Last Post: February 10th, 2004, 12:22 PM
  3. Trying to call cgi script onunload via image.src
    By oscarf in forum HTML Programming
    Replies: 3
    Last Post: February 6th, 2004, 10:18 PM
  4. email attachment cgi script
    By oluckboy in forum HTML Programming
    Replies: 1
    Last Post: January 15th, 2004, 01:39 PM
  5. calling a cgi script from the PHP script
    By gursharn in forum PHP Development
    Replies: 10
    Last Post: December 29th, 2003, 01:27 PM

IMN logo majestic logo threadwatch logo seochat tools logo