I have a PHP file (mymainfile.php
)
inside this PHP file, i have include some other PHP files (include.php
).
The URL is:
http://www.domain.com/my/mymainfile.php
Now i want to get the URL into a variable inside the include.php
file.
All my tries with the $_SERVER
variables will give me "domain.com/my/include.php
" back and that's not what I'm looking for.
Is it possible, and if it's, how?