-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

At 8:05 PM +0100 3/18/01, Gerald Richter wrote:
>You should move the
>
>   use lib "$ENV{DOCUMENT_ROOT}/libs";
>
>into your startup.pl file which is executed at server startup, then the lib
>path should be correctly set in all situations. But you have to replace
>$ENV{DOCUMENT_ROOT} with the real path, because it's not set inside
>startup.pl. I use this often without problems

Well, my goal was to keep the changes to the server config to a 
minimum.  And to have different library paths for different sites.

However, I've taken two steps forward and two back.

The problem with Apache::Reload was that the @INC variable may have 
one value at the time of registration, and another at the time of the 
reload.  I'm talking to the author about that, but I came up with a 
patch that caches the @INC contents at registration time and then 
uses them in a local context at the reload time.  That seems to work 
fine.

Now I'm dealing with a different problem.  For some reason, once a 
process does a Reload,  EmbperlObject stops working.  It logs that 
it's unable to find the template file and the server returns a 404. 
And this happens in a site which doesn't use any reloaded libraries 
(that I know of).  Very strange.

Also, one usage note on Reload.  Don't do anything like:
        BEGIN {
                $foo = $ENV{DOCUMENT_ROOT};
        }
In your code, because when that library is reloaded the value of 
DOCUMENT_ROOT maybe completely different, or even undefined.  (That 
would have been stupid code anywhere if it weren't a site-specific 
library.)
- -- 

Kee Hinckley - Somewhere.Com, LLC - Cyberspace Architects
Now Playing - Folk, Rock, odd stuff - http://www.somewhere.com/playlist.cgi

I'm not sure which upsets me more: that people are so unwilling to accept
responsibility for their own actions, or that they are so eager to regulate
everyone else's.

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBOrZAxCZsPfdw+r2CEQL53ACfbrbvGoiH/N05DxLVKWe5PHMlOQsAoP1p
1zMHsQ78U4xc3farvTDnfG91
=X+qZ
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to