say i have a file /var/www/foo/test.php
how do i find out it's path from within it. i'm trying to create an "Add To Include Path" action, and for that i need absolute paths.
You can use the magic constant, __FILE__
http://us2.php.net/manual/en/language.constants.predefined.php
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With