On Saturday 19 July 2003 00:00, Ryan A wrote:
> I want to make sure my scripts can be executed on only one domain (or
> localhost/ 127.0.0.1)...it should not matter if its
> [url]http://somesite.com/myscript.php[/url]
> or [url]http://somesite.com/~blah/myscript.php[/url]
> or [url]http://blah.somesite.commyscript.php[/url]
> or [url]http://somesite.com/1/2/asdf/234/myscript.php[/url]
>
> It should only work on "somsite.com"
>
> Any ideas on how i can do this? I've seen this done on some old perl
> scripts but how in php?
echo $_SERVER['HTTP_HOST']

--
Jason Wong -> Gremlins Associates -> [url]www.gremlins.biz[/url]
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
[url]http://marc.theaimsgroup.com/?l=php-general[/url]
------------------------------------------
/*
"... an experienced, industrious, ambitious, and often quite often
picturesque liar."
-- Mark Twain
*/