You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by abhishek jain <ma...@ejain.com> on 2007/01/14 19:45:41 UTC

urgent help needed - this script does not chdir

Hi,
I am new to modperl and needs help, i have a script which works fine in
non-modperl enviornment but when i include in modperl::registry then mine
scripts when invoked via a browser finds itself in / directory i mean the
file or script do not include the files with the require command i mean the
relative path it cannot understand.
Additionally when i give this block,
BEGIN{
chdir('/home/absolute/directory');
};

then the script will run fine for some time and not fine i mean will give
error on including a function in a library included by require.


Pl. help me , i need a sol urgently ,
thanks ,
Abhsihek jain

Re: urgent help needed - this script does not chdir

Posted by Perrin Harkins <pe...@elem.com>.
abhishek jain wrote:
> I am new to modperl and needs help, i have a script which works fine in 
> non-modperl enviornment but when i include in modperl::registry then 
> mine scripts when invoked via a browser finds itself in / directory

http://perl.apache.org/docs/2.0/user/porting/compat.html#C_Apache__Registry___C_Apache__PerlRun__and_Friends

- Perrin