在我的索引 index.php 文件中,我有require_once('_indexAction.inc.php');
在 _indexAction.inc.php 内部,有一个名为$shortUrlDomain = (int)$_REQUEST['shortUrlDomain'];
我想根据一个名为$shortUrlDomain
的字符串是1还是0来更改$Auth->subdomain
的值。我尝试了以下if语句,但是它确实起作用,有人知道为什么它不起作用吗?如果我使用子域名;我会在 index.php 文件中找到正常显示的$Auth->subdomain;
值。
在 _indexAction.inc.php
/* here i need help start */
if ($Auth->subdomain ==1);
{
$shortUrlDomain = (int)$_REQUEST['shortUrlDomain'];
}
if ($Auth->subdomain ==0);
{
$shortUrlDomain = "1";
}
/* here i need help end */