Say I had a php script at
http://www.domain.com/somedir/script.php3
How could I get script.php3 when run to print it's full path, e.g. "http://www.domain.com/somedir/script.php3"?
Printable View
Say I had a php script at
http://www.domain.com/somedir/script.php3
How could I get script.php3 when run to print it's full path, e.g. "http://www.domain.com/somedir/script.php3"?
no worries, I got it!
PHP Code:print "http://".$HTTP_HOST.$REQUEST_URI;