A full path is likely necessary for shell_exec() on a Linux machine. It would most likely need to be a proper absolute path at the disk level (rather than a relative link within the website folder) for it to find the file. This means something more like "/usr/home/mysite/public_html/cgi-bin/search.cgi". You may need to check with your host (or use telnet or ftp) to confirm what the full path is.
Fantastic! That works! I checked on my shared web host's help section to find out how to reference the absolute path, and they say you have to access with $DOCUMENT_ROOT. So I incorporated that in your IIS script for calling CGI routines, and it works. On our server, if I were using the example above, $DOCUMENT_ROOT would replace everything up to the slash before the directory where the CGI file resides.
It's now down to me to play around with the search template and get it how I want it. Thanks so much again for everyone's help in this thread. It's so nice to talk to people who have the answers!
Peter
Leave a comment: