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
> http://somesite.com/myscript.php
>  or http://somesite.com/~blah/myscript.php
>  or http://blah.somesite.commyscript.php
>  or http://somesite.com/1/2/asdf/234/myscript.php
>
> 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 -> 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
------------------------------------------
/*
"... an experienced, industrious, ambitious, and often quite often
picturesque liar."
                -- Mark Twain
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to