I have a script that runs fine but when I try to call it with a <!--#include virtual="/cgi-bin/quote.cgi"--> it throws a process error. If I delete everything and do a print "test"; it works. I really am at a loss.
yes the script runs as standalone(commandline) or as a cgi and 2nd script I included works. But the first script with LWP::Simple throws the ominous error.
[an error occurred while processing this directive]
the server log of the error reports:
[Mon Aug 9 16:56:37 2004] [error] [client 192.168.1.1] unable to include "/cgi-bin/Data/Scifi.pl" in parsed file /Library/WebServer/Documents/index.shtml
the scripts that follow are the full scripts. I have rendered them down to the barest working/non-working state.
##### this script causes the above error
#!/usr/bin/perl -w
First... is the LWP module installed?
Next, are you sure that SciFi.pl is in the sub-directory Data in the cgi-bin directory? Additionally, are the files on the server capitalized as you show them? Some implementations are case sensitive.
There's always a better way. The fun is trying to find it!
Both scripts will run from the command line even if LWP isn't loaded because neither script is using LWP. ALl you're doiing is tell the script to use it. Why not put in some code that utilizes LWP? If all you're doing is creating a web page you don't need LWP.
There's always a better way. The fun is trying to find it!
I did/do.... I kept cutting out the code until I got it to a point to where I know what is causing the error hence the 2 scripts the one that works and the one that doesn't. The point IS that as an include it is not executing the script while the script contains use LWP::Simple. The script will execute when it is not called from my .shtml page but as soon as I call it from the page it throws a error. The reason I know it is LWP:Simple is if I comment out the LWP::Simple it works and uncommented it won't work.
tviman I must apologize for thinking that you were off your rocker. It would appear that my LWP::Simple either was messed up or something I cpan reinstalled it and now it works as a include. I wish I knew why it worked as a script and not as a include!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.