![]() |
How to pull your URL into an Include?
I can do the date, time, IP address and all of that but have never been able to pull my URL into it.
Example, in my generic footer include I call the date and then the copyright info, but would also like to add the domain to it so I could have a totally generic footer include that I can drag and drop into any site. Thanks ya. |
If you want just to show your site's url just use
Code:
echo $_SERVER['SERVER_NAME']; PHP Code:
PHP Code:
PHP Code:
(you can contact me and I can write that for you) |
not really wise to allow it for a server if you share it, but if its just your box, im pretty sure its ok
|
it's bad idea, use full path instead:
include('/home/bluh/bluh/footer.php'); |
Quote:
And thanks to the first poster, it is "echo $_SERVER['SERVER_NAME'];" I was looking for. |
Quote:
|
All times are GMT -7. The time now is 02:31 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123