[Klone-users] RE: Current Path
thomas fossati
tho at koanlogic.com
Thu Mar 6 03:14:21 EST 2008
Hi Trung,
On Mar 6, 2008, at 5:41 AM, Trung, Tran Minh wrote:
> I have a file user.db in the folder "/home/username/klone2/webapp/
> www/".
> If I set the path is "/home/username/klone2/webapp/www/user.txt", it
> read OK. But if I use getcwd() function, the path will be "/
> user.db", it
> read fail. So how can I get the path that I can read on different PC
> (with different username in the path "/home/username/klone2/webapp/
> www/"
> ?
could you please explain more in detail what your requisite is ?
If you need to do user authentication and then associate a "profile"
to each authenticated user the usually trodden path is to have a
global users' db (a la /etc/{passwd,group}) plus some HTTP session
handling (something similar to http://wiki.koanlogic.com/doku.php?id=loginout)
in your .kl1.
Let us know.
ciao, t.
More information about the klone-users
mailing list