veenuisthebest
09-15-2008, 03:30 AM
In my PHP script, I want to change directory only when the user has referred from the root of the domain i.e. http://www.domain.com and NOT when referred from http://www.domain.com/forum
something like this:-
if(referrer = "http://www.domain.com")
{
chdir('forum');
}
else
{
no chdir
}
how do I achieve this ?
thank you
something like this:-
if(referrer = "http://www.domain.com")
{
chdir('forum');
}
else
{
no chdir
}
how do I achieve this ?
thank you