Re: include

From: Date: Mon, 24 Feb 2003 07:06:52 +0000
Subject: Re: include
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-136846@lists.php.net to get a copy of this message
On Monday 24 February 2003 15:03, John Taylor-Johnston wrote: > Hi, > I have an index.html that I use on different URLs. Because of that, I want > to create a causal reality. I want to > > if ?? = http://foo.ccl.flsh.usherb.ca/ > include('./note.html'); > > if the URL is http://foo.ccl.flsh.usherb.ca/ but not if the URL > is > http://foo.compcanlit.ca/ > > What variable can I muster up to do this? print_r($_SERVER) to see what you can use. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Only adults have difficulty with childproof caps. */

« previous php.general (#136846) next »