[TYPO3] inqure the site-url in php

stem stema at web.de
Sun Feb 19 16:49:28 CET 2006


thanks for your help,

however i need something to get the url to the folder, in which typo3 is 
installed.  -> something like http://www.example.com/t3page

any other ideas?

thanks!!

Heiner Lamprecht wrote:
> 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
> 



More information about the TYPO3-english mailing list