Jump to content

[SOLVED] PHP Include Help Needed with cgi file PLEASE


crh7

Recommended Posts

Hi,

 

I have a site made with html which includes files on the pages via SSI, and uses 2 cgi scripts within the cgi-bin.

 

I now want to add a PHP script.

 

I changed my .htaccess file to contain this line...

 

AddType application/x-httpd-php .php .html .cgi  (tried it both with and without the .cgi)

 

I changed my SSI calls to the following php include statements...

 

<? include(file-name.txt'); ?>    (which works)

 

and

 

<? include($_SERVER['DOCUMENT_ROOT']."/cgi-bin/file-name.cgi"); ?>  (which does not work)

 

I played around with both the .htaccess file and the include statements, but cannot manage to get any cgi files from within the cgi-bin to work.

 

Can someone PLEASE help me out here?  How do I include .cgi files from the cgi-bin?

 

I appreciate any help anyone can give.

 

Thanks,

Cindy

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.