Error with Absolute URLs
| From: | user at domain dot invalid | Date: | Tue, 23 Dec 2003 12:10:22 +0000 |
| Subject: | Error with Absolute URLs | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-173235@lists.php.net to get a copy of this message | ||
Hi,
I keep getting errors on my websites, that contain absolute URLs, e.g. http://www.url.com/blah.html. With most, being in the folder of my website, it's fine, i can just add $_SERVER['DOCUMENT_ROOT'], but there's a script I use to display the network statistics of an IRC network, which is located on a different server, so i can't use the $_SERVER['DOCUMENT_ROOT'], I'm wondering if anyone has an answer to this. I'm almost to the stage of just asking the script owner if I can have it located locally, so i can use the $_SERVER['DOCUMENT_ROOT'] variable.
It was working fine until the server admin updated to PHP 4.3.4, but he is not the best with PHP/HTML programming, so he can't help much.
Hope someone can help.
Thanks!