I am designing a php based website for a local college here in Vegas. The sucky thing is that they use cgi-wrap in order to protect the rest of their server from possible damaging scripts. Here is an excerpt from their directions:
In order to allow users to write/install cgi scripts, CGIWRAP has been installed on the UNLV Web Server (www.unlv.edu). CGIWRAP protects the web server by running the cgi script as the owner of the script (thus limiting any damage done by the script to that account).
If you are setting up a PHP script, please note that PHP works much the same as Perl on the UNLV Web Server. In order for your script to work, you must observe the following guidelines:
- The first line of your script must look like this:
#!/usr/local/bin/php
Your script must be placed in the cgi-bin directory.
The file permissions must be set to executable.
To see your script in action on the Web, use the following URL:
http://www.unlv.edu/cgiwrap/yourloginname/scriptname
[/COLOR]
Now I've done all of this. For example I have a php script called 'index_header.php' that I is in my cgi-bin. From there in my index.html I include the file as follows:
<!--#include="http://www.unlv.edu/cgiwrap/shtfilm/index_header.php" -->
But this is what I get:
http://www.unlv.edu/programs/filmarchive/
Any help or directions? I have not had any problems dealing with php pages until I've had to deal with cgi-wrap. Thanks to whoever can lend a hand!
Roger Erik Tinch
tinch@vdefilms.com