i dont think you are understanding what i reqire..
i have a database with a list of very long URLS to long to remember easy, along with each URL is a keyword.
eg.
phpb1 = http://phpbuilder.com/board/newreply.php?do=newreply&noquote=1&p=10835314
what i then want is to have a script running from index.php so when someone goes to the following
http://www.mydomain.com/phpb1
it would then redirect them to the long url.
so what the script index.php is doing is reconising what ever comes after the / is a value, and that value is then lookedup in a mysql databased, the long url is then retrieved if found and the user is forwarded to that address.
What i wanted was just a working sample script where what ever came after / was echoed on the screen loading index.php all the time, where i would then do the addition code.