Re: Quick q, most prolly 0T
| From: | Sebastian | Date: | Thu, 02 Jun 2005 03:33:34 +0000 |
| Subject: | Re: Quick q, most prolly 0T | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-216202@lists.php.net to get a copy of this message | ||
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