I know you can use $PHP_SELF to obtain the address of the script, but it doesn't return the full address. For example, it would return "/test/test.php" but what I need is "http://mydomain.com/test/test.php"
How would I do this?
Thank you 🙂
Have a page with just <? phpinfo(); ?>
and see all the variables that are defined, especially the ones in $_SERVER. You'll see that there is a variable for the domain name, so just concatenate that variable with $PHP_SELF.
Diego