sotre url in a variable
Posted: Sat Jan 10, 2004 6:06 am
hi,
i am a newbie, how can i store the current url in a variable.
OR
redirect user based on virtual directory for example if user types http://localhost/TM then he should redirect to tm.php
If user types http://localhost/king then he should go to king.php
I also tried the server variable like $PHP_SELF nothing is working.any help
thanks in advance
raj
i am a newbie, how can i store the current url in a variable.
OR
redirect user based on virtual directory for example if user types http://localhost/TM then he should redirect to tm.php
If user types http://localhost/king then he should go to king.php
I also tried the server variable like $PHP_SELF nothing is working.any help
thanks in advance
raj