From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: RE: Problems with using Inline in cgi scriptDate: Fri, 18 May 2007 22:37:42 +0000
Hi Eric, Thanks a lot for your quick response. I fixed it and it works like a dream now. Though I did solve the taint issue with Inline.pm, taint is now complaining about Carp.pm! Need to check if we are running an older version of it I guess. Thanks a lot for your help.Gayathri> To: inline@perl.org> Subject: Re: Problems with using Inline in cgi script> Date: Fri, 18 May 2007 14:34:30 -0700> From: [EMAIL PROTECTED]> > # from [EMAIL PROTECTED]> # on Friday 18 May 2007 01:18 pm:> > >1. When I execute my code from the web, I get the> > following error,Couldn't find an appropriate DIRECTORY for Inline to> > use.I am thinking this probably has something to do with> > permissions??? > > Permissions and/or environment. In most cases, apache's $HOME is /tmp/. > Possibly creating /tmp/.Inline as apache writable would do. (Or, not > writable, but preseeded with built code.)> > > Where is a good place for Inline to create a directory > > while running within a CGIscript? > > You can also tell inline to use a directory. If this already has built > code, it doesn't need to be writable.> > The most secure thing in cgi usage would probably be installing the > inlined code in your @INC. Read the bit about 'VERSION => ...' in the > Inline.pod docs for how to make it not attempt to rebuild.> > >2. When I use the -T switch/run it in taint> > mode, I get the following error message.Insecure dependency in> > require while running with -T switch at blib/lib/Inline.pm (autosplit> > into blib/lib/auto/Inline/find_temp_dir.al) line 1247> > Hmm, taint mode checks usage of environment variables, right? You're > probably looking at File::Temp, but check the source + perlsec and see > what you find. Of course, may not be an issue if you do the > installed-code usage as mentioned above.> > --Eric> -- > Entia non sunt multiplicanda praeter necessitatem.> --Occam's Razor> ---------------------------------------------------> http://scratchcomputing.com> ---------------------------------------------------Use Messenger to talk to your IM friends, even those on Yahoo! Talk now! _________________________________________________________________ Check the weather nationwide with MSN Search: Try it now! http://search.msn.com/results.aspx?q=weather&FORM=WLMTAG