On Wed, Sep 08, 2004 at 03:38:54AM +0000, Mark Stosberg wrote:
> I have thought about this, and agree that your approach seems
> reasonable. Some people will have an web directory named "public_html".
> Others will be named "www". Some will able to create a "perllib"
> directory outside of the web root, others may need to dump everything in
> /cgi-bin
>
> It seems there is go way to hard-code even a relative "use lib" ahead of
> time.
That's been my experience which made migrating these to my laptop for
offsite/offline work relatively painful.
> I like the idea of having installers, and I look forward to seeing what
> you come with, especially since it integrates with Build.PL.
I'll send you a copy of my current version in a separate email to avoid
inundating the list. Let me know offlist if anyone else wants a copy.
WARNING: This is alpha code. You can also look at the Apache::Test
module which performs a similar, but much more complex version.
> What I have done in the past is to mention a relative config file path
> in every instance script. It's true that some will have a slightly
> different relative location.
>
> This really hasn't been a time sink. I already have to edit each
> instance script a bit anyway to change the package name. Possibly adding
> another "../" to the confile file path is not a bit deal.
>
> You've made a reasonable case for loading your config files in "setup()"
> as well.
I just haven't really considered adding the loading in the instance
scripts when it comes to my larger projects (I do this for reusable
modules such as form processors). I'll try it and see how it goes. Who
knows, I may be a convert. My original concern was more about the
wording in the description of your plugin. I wanted to be sure I wasn't
somehow misusing the module by loading the config in setup().
> > This is a great example. Question: Where do you store your config files?
>
> My site structure looks like this:
I presume that your instace scripts are in www. Do the paths to your
config files look like ('../config/Config.pl')?
Thanks,
William
--
Knowmad Services Inc.
http://www.knowmad.com
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]