Re: [PHP-WIN] Re: DOCUMENT_ROOT on Apache

2002-12-09 Thread Dash McElroy
echo $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] You can also use the following for PHP_SELF: $_SERVER['REQUEST_URI'] <- has GET string as well $_SERVER['SCRIPT_NAME'] <- haven't used this one yet You could also use $_SERVER['SERVER_NAME'] instead of HTTP_HOST, but HTTP_HOST is what the user ty

[PHP-WIN] Re: DOCUMENT_ROOT on Apache

2002-12-06 Thread erythros
home this will build it onto the pre-exsistin web address. so if your at www.mypage.com and you click that link you'll go to www.mypage.com/test. "Radovan Radic" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Ok, > what should i do ot get > http://localhost/tes

[PHP-WIN] Re: DOCUMENT_ROOT on Apache

2002-12-06 Thread Radovan Radic
Ok, what should i do ot get http://localhost/test I need this do make a link to homepage (i got same app on more servers and i dont want to hard-code in every page ) Radovan "Erythros" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > because your asking for the

[PHP-WIN] Re: DOCUMENT_ROOT on Apache

2002-12-06 Thread erythros
because your asking for the document root, ie: the directory root. "Radovan Radic" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi > > I installed Apache 1.3.27 on w2k, after using IIS. > When i try to output > print "Home; > it gives me A HREF="c:/inetpub/ww