quote:
Originally posted by WDZ
You should try this instead: dirname($_SERVER['PHP_SELF'])
If you're running the script http://site.com/files/images/index.php, that code will return "/files/images"
Thnx, I think I could ask if (directory is this) link=index.php else link=../index.php ....