Re: Quick q, most prolly 0T

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux