Hello,
I've read a couple of posts and the FAQ for CGI scripts, however, whenever Apache is mentioned it is automatically assumed you are on a linux box.
I'm pointing to an internal web server (Win 2003 Server, SP2) cgi-bin folder where the Zoom application automatically stores the search.cgi application (vs. ftp).
http://intranet/cgi-bin/search.cgi returns:
First I'm surprised at the error because the default cgi-bin/printenv.pl works just fine. Second, it seems odd that the html code is posted in the window vs. actually rendering to see only text.
I've tried to work around this by using the php function passthru() which does open the search box correctly, however, this page is embedded in a CMS (Joomla 1.5RC) and to call this page there are some $_GET[''] variables that are not being captured (intranet/index.php?option=com_zoom&Itemid=64).
Best results is to figure out how to post the CMS variables within the passthru() function, but if that doesn't work... I need to get cgi-bin/search.cgi displaying correctly so I can create an iframe.
thanks for the help,
- MusOX
I've read a couple of posts and the FAQ for CGI scripts, however, whenever Apache is mentioned it is automatically assumed you are on a linux box.
I'm pointing to an internal web server (Win 2003 Server, SP2) cgi-bin folder where the Zoom application automatically stores the search.cgi application (vs. ftp).
http://intranet/cgi-bin/search.cgi returns:
Code:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>500 Internal Server Error</title> </head><body> <h1>Internal Server Error</h1> <p>The server encountered an internal error or misconfiguration and was unable to complete your request.</p> <p>Please contact the server administrator, webmaster@domain.tld and inform them of the time the error occurred, and anything you might have done that may have caused the error.</p> <p>More information about this error may be available in the server error log.</p> <hr> <address>Apache/2.2.4 (Win32) Server at intranet Port 80</address> </body></html>
I've tried to work around this by using the php function passthru() which does open the search box correctly, however, this page is embedded in a CMS (Joomla 1.5RC) and to call this page there are some $_GET[''] variables that are not being captured (intranet/index.php?option=com_zoom&Itemid=64).
PHP Code:
$QSTRING = $_SERVER['QUERY_STRING'];
putenv('REQUEST_METHOD=GET');
putenv('QUERY_STRING'.$QSTRING);
$command="D:\\wamp\\Apache2\\cgi-bin\\search.cgi";
ob_start();
passthru ($command);
$results = ob_get_contents();
ob_end_clean();
//echo JText::_($results);
echo JText::_(ereg_replace("Content-type: text/html;", "", $results));
thanks for the help,
- MusOX
Comment