koha-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Koha-devel] Another patch for running Koha 2.2.0RC2 under mod_perl


From: Urbez Santana Roma
Subject: Re: [Koha-devel] Another patch for running Koha 2.2.0RC2 under mod_perl
Date: Wed Nov 24 16:16:02 2004
User-agent: KMail/1.6.2

El Martes, 23 de Noviembre de 2004 13:00, Andrés Tarallo escribió:
> We discovered yesterday that we've forgot to apply this patch. This bug
> was fixed and submited by ernesto silva a while ago, we're resubtting it
> again since it wasn't commited.
>
>
> Please test it under both modperl and traditional CGI. We think that the
> bug solved here might also appear under traditional cgi.
>
> Andres

For this problem, i have used in my modified scripts the next lines:
----------------------------------------------------------------------------
        if ($^O eq "MSWin32")
        {
                $ENV{'SCRIPT_FILENAME'}=~ m#(.*/)[^/]+$#;
                chdir($1);
        }
----------------------------------------------------------------------------
The problem, with windows, is that mod_perl uses the
path of "Document and Settings" not the path from actual
script, as Unix.
These lines in C4::Context   or  before the opendir relative 
solve the problem using directly:
        opendir(DIR, "../value_builder") 
or another open's of any file in the same directory of scripts.
This system use i for all project with perl + (unix or windows)
apache systems, and include it in the init script.
-- 
################################################
#- Urbez Santana i Roma -
#- Email: address@hidden
#- Private Web:  http://linuxupc.upc.es/~urbez/
################################################



reply via email to

[Prev in Thread] Current Thread [Next in Thread]