[TYPO3] inqure the site-url in php

Heiner Lamprecht heiner at heiner-lamprecht.net
Sun Feb 19 15:59:33 CET 2006


On Sunday 19 February 2006 15:42, stem wrote:
> hi,
>
> i'm searching for some code to retrieve the url of the current
> website in php.

It's part of the superglobal variable $_SERVER:

$_SERVER['PHP_SELF'] or
$_SERVER['REQUEST_URI']

see http://de.php.net/reserved.variables for details.


    Heiner

-- 
    heiner at heiner-lamprecht dot net    GnuPG - Key: 9859E373
  Fingerprint:  3770 7947 F917 94EF 8717 BADB 0139 7554 9859 E373



More information about the TYPO3-english mailing list