Hi!
I have some questions about using include od require in my code. I wan't to here your opinion about that.
I use something like this
include ("somedir/file.php") or sometimes
inclue ("/webdir/somedir/file.php")
But i noticed some problems in my code. I buil some library where i include one file with config stuff. Then i have another file where i include this library because i need to call some functions. But if i include the this library in other directory (ex: one level higher than others) i get an error because path for including config file in my library is not correct. I i use absolute path like /www/myhost/somedirc/conf.php i works.
I wan't to know how you deal with that problems or is here any variable to hold this path or smth.
Thanks for helping