On Thu 15 Jan 2009, Foo JH wrote:
> Is there a generic method so that given any uri as a parameter, the
> library can do the math and return the physical path?
If you look for the filename for $r->uri, that means the uri of the
current request then $r->filename holds that after the map-to-storage
Adam Prime wrote:
> Foo JH wrote:
>> Adam Prime wrote:
I'm trying to find the class/ method which allows me to get the physical
path base on the uri. Something similar to Server.MapPath('/index.htm')
in ASP.NET.
Any advise is appreciated. Thanks.
>>> $r->document_root . $r-
fREW Schmidt wrote:
> I am writing a CGI::App and I keep having to use full paths to get
> various places in my application. How can I set the CWD for a certain
> Location section of my code?
If you're running your CGI::App code through Registry, and using
mod_perl 2, and running under the prefor
Foo JH wrote:
> Adam Prime wrote:
>>> I'm trying to find the class/ method which allows me to get the physical
>>> path base on the uri. Something similar to Server.MapPath('/index.htm')
>>> in ASP.NET.
>>>
>>> Any advise is appreciated. Thanks.
>> $r->document_root . $r->uri
> Thanks for replying.
Adam Prime wrote:
>> I'm trying to find the class/ method which allows me to get the physical
>> path base on the uri. Something similar to Server.MapPath('/index.htm')
>> in ASP.NET.
>>
>> Any advise is appreciated. Thanks.
>
> $r->document_root . $r->uri
Thanks for replying. In my case it's a we
I am writing a CGI::App and I keep having to use full paths to get
various places in my application. How can I set the CWD for a certain
Location section of my code?
Thanks!
--
-fREW
Foo JH wrote:
> Hi all,
>
> I'm trying to find the class/ method which allows me to get the physical
> path base on the uri. Something similar to Server.MapPath('/index.htm')
> in ASP.NET.
>
> Any advise is appreciated. Thanks.
$r->document_root . $r->uri
but that won't actually tell you if tha
Hi all,
I'm trying to find the class/ method which allows me to get the physical
path base on the uri. Something similar to Server.MapPath('/index.htm')
in ASP.NET.
Any advise is appreciated. Thanks.
On Wed, 14 Jan 2009, Patrick Rutkowski wrote:
> Hmm, I see. Interesting points, all noted.
>
> I also just realized it might have to do with which of the many apache
> children get which requests and when.
>
> I'm hoping that setting MaxRequestsPerChild to something like 1 or 2 (as
> opposed to
Hmm, I see. Interesting points, all noted.
I also just realized it might have to do with which of the many apache
children get which requests and when.
I'm hoping that setting MaxRequestsPerChild to something like 1 or 2 (as
opposed to the default 1) will help ease the pain.
-Patrick
My experience troubleshooting this kind of issue has indicated that its
likely that the package that was unloaded deleted a value stored in the
package space of the module reloaded (probably set at BEGIN block time)
that the subsequent require did not restore.
When these errors happen the thre
I forgot to send the httpd.conf, sorry about that.
==
LoadModule perl_module modules/mod_perl.so
TypesConfig /etc/mime.types
ServerName ubuntu
Listen 80
User rutski
Grouprutski
DocumentRoot "/home/rutski/Documents/projects/wss/install/apache/htdocs"
I'm currently using Apache2::Reload on a development machine, but I
can't for the life of me figure out what it's doing and why.
I'm coming across weird behavior such as the following just about every
5 minutes:
1. Have a perfectly working page.
2. Change some `print "foo"` to `print "bar"` (
cr...@animalhead.com wrote:
I have a vague recollection of reading about the
circumstances in which filehandles can be inherited, but
can't remember where.
I've been bitten by this a few times. Filehandles (and thus sockets) are inherited across forks. If
your system isn't very busy you won'
This is my first time replying to the list. I've seen
advice about not being able to share a filehandle opened
in a pre-fork stage before, but have two counter-examples:
1) I opened a log file for write/append in the open-logs
stage of a module, and was able to (flock and) write to it
in child p
Adam Prime wrote:
The PDF's are regenerated once a day. They should update at some point
over the next 12 hours I think.
Adam
# every monday rebuild all, including pdf
30 03 * * 1
/home/perlwww/apache.org/modperl-docs/bin/site_build_force_pdf_index
# update all (only changes/no pdf) every 6
On Wed, 14 Jan 2009, Michael Ludwig wrote:
> I want to build a mod_perl2 application using
> Sleepycat::DbXml. This is
>
> However, I don't know how to do this. Currently, I'm
> trying to set up things in startup.pl (loaded via
> PerlPostConfigRequire), store the database environment
> handle in
I want to build a mod_perl2 application using Sleepycat::DbXml. This is
the Perl bindings to the C++ interface to Berkeley DB and Berkeley DB
XML, developed by Sleepycat, now owned by Oracle (keywords: DbEnv,
XmlManager, XmlContainer).
Has anyone ever used this combination?
Note I'm using Apache
Michael Ludwig wrote:
Adam Prime schrieb:
Michael Ludwig wrote:
http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlAddVar_
| my @foos = $r->dir_config('foo');
This is wrong. You have to say:
my @foos = $r->dir_config->get('foo');
Committed revision 734312, which updates
Adam Prime schrieb:
Michael Ludwig wrote:
http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlAddVar_
| my @foos = $r->dir_config('foo');
This is wrong. You have to say:
my @foos = $r->dir_config->get('foo');
Committed revision 734312, which updates the two examples on th
20 matches
Mail list logo