you can do that with just an index.php file.
say you have a directory called 'foo' with an index.php you can do something like this:

if($_GET['a'] == 1)
{
 echo 'blah';
}

mysite.com/foo/index.php?a=1

would be the same as:

mysite.com/foo/?a=1

Ryan A wrote:

Hey,
I noticed a site that is using php, but he is has shortened the url so that
the filename was not shown..
eg:
somesite.com/?a=1

How did they do that? if it was url rewriting it would be somesite.com/1/ so
what is he using?

Thanks,
Ryan




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

Reply via email to