From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 23 March 2006 15:17 To: [email protected] Subject: Configuring path for require in web application
> I installed a web application written in perl. This web application has to be installed in his own cgi-bin > subdirectory. The main perl script do a lot of require 'somefile' to include files in the current directory. > When that script is executed, the user receive this error message: > Can't locate layout.ph in @INC (did you run h2ph?) (@INC contains: M:/Perl/lib M:/Perl/site/lib .) at D:\\chr > \\wwwroot\\WebApps\\cgi-bin\\worklist\\main.pl line 54. > Line 54 contains > require 'layout.ph'; > The file layout.ph is in the same directory as main.pl. As I understand, I have to add a directory in the > "@INC" variable. I have no idea how to do that ! > Any help appreciated. The installation instructions should tell you everything you need to do. If they don't you should contact the author, or whoever you got the application from. If that is not possible then you should probably be a bit suspicious. Another cause for suspicion might be the line you quote. Files do not usually have a ".ph" extension these days unless they are very old (e.g. Perl version 4), or they are generated by h2ph. You should be aware that there is a lot of old and/or badly written code to be found on the web (if that is where you obtained your application) that contain some fairly serious security holes. I would advise caution unless you feel that you can trust your web server in the authors hands. Perhaps you could say what the application is, and where you obtained it. Somebody here may be able to offer an opinion. HTH -- Brian Raven ================================= Atos Euronext Market Solutions Disclaimer ================================= The information contained in this e-mail is confidential and solely for the intended addressee(s). Unauthorised reproduction, disclosure, modification, and/or distribution of this email may be unlawful. If you have received this email in error, please notify the sender immediately and delete it from your system. The views expressed in this message do not necessarily reflect those of Atos Euronext Market Solutions. L'information contenue dans cet e-mail est confidentielle et uniquement destinee a la (aux) personnes a laquelle (auxquelle(s)) elle est adressee. Toute copie, publication ou diffusion de cet email est interdite. Si cet e-mail vous parvient par erreur, nous vous prions de bien vouloir prevenir l'expediteur immediatement et d'effacer le e-mail et annexes jointes de votre systeme. Le contenu de ce message electronique ne represente pas necessairement la position ou le point de vue d'Atos Euronext Market Solutions. _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
