Re: relative path not accepted in mod_perl2 ?
[EMAIL PROTECTED] wrote: > just found out the "deeper" reason - mod_perl now always has path="/" > which is unexpected behaviour. While I can filter out the actual path > from the cgi-environment I dont understand this .. See the parallel thread on the same topic. http://mathforum.org/epigone/modperl/smansheezhing Things will work as expected by the time mod_perl 2.0 is released. [funny that mathforum's engine has mixed this thread with a thread with the same title but from 5 years ago. Looks like the time has crossed itself] -- __ Stas BekmanJAm_pH --> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
Re: relative path not accepted in mod_perl2 ?
> On Tue, 16 Jul 2002 16:30:16 +0200, [EMAIL PROTECTED] said: P> just found out the "deeper" reason - mod_perl now always has path="/" P> which is unexpected behaviour. While I can filter out the actual path P> from the cgi-environment I dont understand this .. See [EMAIL PROTECTED]">http://mathforum.org/epigone/modperl/smansheezhing/[EMAIL PROTECTED] -- Ilya Martynov (http://martynov.org/)
Re: relative path not accepted in mod_perl2 ?
just found out the "deeper" reason - mod_perl now always has path="/" which is unexpected behaviour. While I can filter out the actual path from the cgi-environment I dont understand this .. thnx, peter On Tue, Jul 16, 2002 at 04:12:02PM +0200, [EMAIL PROTECTED] wrote: > I just upgraded to apache2 and mod_perl1.99 and the first big > difference I noticed is that I can include my libraries using relative > pathes any more. > > Until now I had my mainprogram and its library/ies in the same path. > > like > # ls edit.* > edit.lib.pl edit.pl > > and in edit.pl I had the line > > require './edit.pl'; > > this worked fine with mod_perl1.27 > > now I receive a error like this: > [Tue Jul 16 15:56:33 2002] [error] 25772: ModPerl::Registry: `Can't locate >./edit.lib.pl at /data/apache/htdocs/goldfisch/edit.pl line 24' > > > and I need to specify the full path in the require-command. While this > is not a real problem its a suprising behaviour .. > > peter > > > -- > mag. peter pilsl > IT-Consulting > tel: +43-699-1-3574035 > fax: +43-699-4-3574035 > [EMAIL PROTECTED] > > -- mag. peter pilsl IT-Consulting tel: +43-699-1-3574035 fax: +43-699-4-3574035 [EMAIL PROTECTED]
relative path not accepted in mod_perl2 ?
I just upgraded to apache2 and mod_perl1.99 and the first big difference I noticed is that I can include my libraries using relative pathes any more. Until now I had my mainprogram and its library/ies in the same path. like # ls edit.* edit.lib.pl edit.pl and in edit.pl I had the line require './edit.pl'; this worked fine with mod_perl1.27 now I receive a error like this: [Tue Jul 16 15:56:33 2002] [error] 25772: ModPerl::Registry: `Can't locate ./edit.lib.pl at /data/apache/htdocs/goldfisch/edit.pl line 24' and I need to specify the full path in the require-command. While this is not a real problem its a suprising behaviour .. peter -- mag. peter pilsl IT-Consulting tel: +43-699-1-3574035 fax: +43-699-4-3574035 [EMAIL PROTECTED]