[Klone-users] Current Path

Stefano Barbato barbato at koanlogic.com
Mon Mar 3 05:45:29 EST 2008


On 03/mar/08, at 08:45, Trung, Tran Minh wrote:

> Hi everyone,
>
> How can I get current path when running in KLone server !? What  
> function can do that?
> Ex: I want to get the path: “/home/username/klone2/webapp/www/”
>
> Thanks & Best Regards,
>
> Tran Minh Trung


Hi,

you can retrieve the current path at runtime with getcwd() function.  
If your code doesn't change the working directory (chdir() or similar)  
getcwd() will return "/" i.e. by default KLone current directory is  
the root dir.

bye,
s




More information about the Klone-users mailing list