##前置GET參數
前置GET參數是可以把GET參數放在URL的最前面,在程序中可以通過$_GET獲取
配置方法是在“phpstart/__config/vhosts.ini.php”
**例子1**
~~~
return array(
//程序目錄綁定
//支持正則匹配
array(
'host'=>'127.0.0.1',
'path' =>'test',
'gets' => array(
'username'=>'admin'
)
),
array(
'domain'=>'localhost',
'path' =>'test2'
),
array(
'domain'=>'/.*\.com$/',
'path' =>'test3'
)
);
~~~
* * * * *
http://127.0.0.1/fafa/home/index
>引用文件:、/test/home.php
實例化: new home()->index();
在程序中可以通過 $_GET['username'] 獲取變量值 fafa