CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML





Zone: > NEWSGROUP > Asp.Net Forum > migration_to_asp.net.migrating_from_php_to_asp.net Tags:
Item Type: NewsGroup Date Entered: 12/9/2007 8:33:19 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 7 Views: 19 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
8 Items, 1 Pages 1 |< << Go >> >|
fedailr
Asp.Net User
relative $_SERVER[HTTP_HOST]12/9/2007 8:33:19 PM

0/0

what is the relative of

$_SERVER[HTTP_HOST] at asp.net


j6rb.com


Mikesdotnetting
Asp.Net User
Re: relative $_SERVER[HTTP_HOST]12/9/2007 10:04:28 PM

0/0

Asp.Net gets these values from the Request.ServerVariables collection.  The collection items are the same (I think): http://www.aspcode.net/List-of-RequestServerVariables.aspx

VB: Request.ServerVariables("HTTP_HOST")
C#: Request.ServerVariables["HTTP_HOST"]

 


Regards Mike

8 out of 10 questions have already been asked. Their answers can be found using Google. Go on, try it.

If you prefer code samples or tutorials in another language, translate it for free at www.codechanger.com
fedailr
Asp.Net User
Re: relative $_SERVER[HTTP_HOST]12/10/2007 3:54:17 PM

0/0

what the advantage of the Request.ServerVariables("HTTP_HOST")
 can i mak the script only work at only one domain


j6rb.com


GeorgeZ
Asp.Net User
Re: relative $_SERVER[HTTP_HOST]12/11/2007 10:00:30 AM

0/0

Compare to what? 

SERVER_NAME?

fedailr
Asp.Net User
Re: relative $_SERVER[HTTP_HOST]12/11/2007 3:13:29 PM

0/0

GeorgeZ:

Compare to what? 

SERVER_NAME?

 

i don't understand

i well tell you i don't know any things about php because i heat it but i was aske some body i know him about how him script just work on only one domain and if i copy to another site don't work

he tell about this function


j6rb.com


GeorgeZ
Asp.Net User
Re: relative $_SERVER[HTTP_HOST]12/13/2007 6:00:40 AM

0/0

Sorry I though you were trying to compare the difference of HTTP_HOST and Server_Name

 

fedailr
Asp.Net User
Re: relative $_SERVER[HTTP_HOST]12/14/2007 10:39:50 PM

0/0

what is the specification of Request.ServerVariables("HTTP_HOST")

and how can i run the script on only on domain


j6rb.com


fedailr
Asp.Net User
Re: relative $_SERVER[HTTP_HOST]1/19/2008 1:48:35 AM

0/0

if ( $_SERVER['HTTP_HOST'] == "www.swalif.net" )
{ nothing;
}
else
{ echo 
"not support"
; } 

 

what is the relative at asp.net


j6rb.com


8 Items, 1 Pages 1 |< << Go >> >|



Search This Site:


Meet Our Sponsors:



Other Resources:

ng.asp-net-forum.migrating_from_php_to_asp-net - Web Programming Newsgroups Explore Item Entry Profile Invite History Resources SiteMap ... relative $_SERVER[HTTP_HOST] 7. 2. 1/19/2008 1:48:35 AM. PHP resources vs ASP.NET resources ...
relative $_SERVER[HTTP_HOST] - ng.asp-net-forum ... relative $_SERVER[HTTP_HOST], > ROOT > NEWSGROUP > Asp.Net Forum > ... relative $_SERVER[HTTP_HOST] - ASP.NET Forums : Asp.Net gets these values from ...
Migrating from PHP to ASP.NET ... relative $_SERVER[HTTP_HOST] Re: relative $_SERVER[HTTP_HOST] ... Re: relative $_SERVER[HTTP_HOST] Re: relative $_SERVER[HTTP_HOST] relative $_SERVER[HTTP_HOST] ...
using relative/absolute URI's host = $_SERVER['HTTP_HOST']; $uri = rtrim(dirname($_SERVER['PHP_SELF' ... PHP Freaks Forums > PHP > PHP Help > Topic: using relative/absolute URI's " previous next " ...
[#ZF-778] _redirect() needs to use absolute URIs? - Zend Framework ... ... that we can rely on $_SERVER['HTTP_HOST']/$_SERVER['SERVER_NAME'] and $_SERVER ... When server receives relative redirect request from php, it resolves its target ...
PHP: $_SERVER - Manual The filename of the currently executing script, relative to the document root. ... 'HTTP_HOST' Contents of the Host: header from the current request, if there is one. ...
XOOPS Project if (!strpos(XOOPS_URL, "http")) { //Relative URL used, calculate absolute URL ... define("XOOPS_ABS_URL", $protocol."://".$_SERVER['HTTP_HOST'].XOOPS_URL) ...
#890 (support relative paths for enclosures) - WordPress Trac - Trac ... work for relative URLs as well. ... The relative links also need to work from within pages other ... href="/', ' href="http://' . $_SERVERHTTP_HOST? ...
PHP: Predefined variables - Manual "The filename of the currently executing script, relative to the document root. ... If it's off, then things like $_SERVER['HTTP_HOST'] won't be present. ...



 
All Times Are GMT