Hi
I have a php file at, say, localhost/foo/foo/bar.php
which includes a file at localhost/foo/included.php
I need to be able to get "localhost/foo/" as a string inside included.php
If, instead of localhost/foo/foo/bar.php, it's localhost/big/burpy/lolz/here.php (still including included.php) I still need to get "localhost/foo/"
So, I need the path of the included file and not the one that the client requested.
Ben bir ahmak gibi hissediyorum gidiyorum çözüm görünce ben biliyorum, ama sadece şu anda bana kaçar. Lütfen yardım? teşekkürler :)