Jun 14, 2000, 6:29 AM
Post #3 of 10
Well, you probably adapted the script to your own needs, and you may have made a typo somewhere.
To check that, try it on your own system by typing "perl -wc parse.cgi" in a DOS box or on a command line. This will compile the script and tell you if there's anything seriously wrong with it (like a missing ' or something).
Once you've corrected all compilation errors locally, you can upload it to your webserver again (in ASCII) and change its permission to 755 (rwxr-xr-x).
Make sure Perl is located in /usr/bin on the server, and if it isn't, adapt the first line of the script accordingly.
And make sure your header and footer files are in the correct location, and are readable by the script when it is run by the webserver.
Now you're ready to try it out. If you see an error appear in the browser, saying it can't find HTTP::Request::Common or LWP::UserAgent in @INC, that means the webserver does not allow you to do what you want to do.
Unless you can convince the administrator of the server to install those (standard) modules, you're stuck.
Note that many free webservers don't allow outgoing socket connections at all, so they won't run this kind of script either.