crh7 Posted March 15, 2007 Share Posted March 15, 2007 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 Link to comment https://forums.phpfreaks.com/topic/42791-solved-php-include-help-needed-with-cgi-file-please/ Share on other sites More sharing options...
crh7 Posted March 15, 2007 Author Share Posted March 15, 2007 How do I include .cgi files from the cgi-bin? Anyone? Thanks, Cindy Link to comment https://forums.phpfreaks.com/topic/42791-solved-php-include-help-needed-with-cgi-file-please/#findComment-207986 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.