Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - PHP code
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

PHP code

 Post Reply Post Reply Page  <12
Author
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post Posted: 21 October 2003 at 10:20am

NO,

<%Response.Write (Request.servervariables("http_host"))%>

works without a referrer, and in this case ServerVariables works without having a referer

Back to Top
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post Posted: 21 October 2003 at 10:30am

I didn't expect that a Linux Server will support ASP

I think ChilisASP or whatever it is named is good

http://it-egypt.com/default.asp

http://it-egypt.com/default.php

the <%= Request.servervariables("http_host")%> worked on Linux
(and without a referrer)

NO NEED FOR PHP

lol (Professional Home Pages) lol

Thanks All

Back to Top
KCWebMonkey View Drop Down
Senior Member
Senior Member
Avatar
Go Chiefs!

Joined: 21 June 2002
Status: Offline
Points: 1319
Post Options Post Options   Thanks (0) Thanks(0)   Quote KCWebMonkey Quote  Post ReplyReply Direct Link To This Post Posted: 21 October 2003 at 10:50am

ok ok...

you were talking about http_host and about http_referrer... got confusing...

Back to Top
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post Posted: 21 October 2003 at 4:02pm

this brough the PHP tp work:

<?php echo $_SERVER['SERVER_NAME'] ?>

Back to Top
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post Posted: 21 October 2003 at 4:13pm
Originally posted by Gullanian Gullanian wrote:

Try:

$_SERVER['HTTP_REFERRER']

oh.. it was Gullanian who directed us to the HTTP_REFERRER, although i asked for HTTP_HOST, and since i know nothing in php.. i didn't read the code.. just copied and pasted it

Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.