$mod = isset($_GET['m']) ? ucfirst($_GET['m']) : 'Index'; //默认加载Index 函数isset ucfirst() 首字母大写
$mod .= "Action";
$run = new $mod();
$run->run();
$mod .= "Action";
$run = new $mod();
$run->run();
解决方案 »
- 使用mysql_unbuffered_query执行增删改语句,但它不缓存结果行等数据,那要如何判断命令是否成功执行了
- session_module_name() 有什么作用?
- 请推荐基本网站架构方面的
- 找本汉化最完全的PHP手册
- >>>> 表单内重名的input,能都得到它们的值吗
- 数组转化,由php到javascript! help
- 怎么合并数组?
- 哀求!能否在PHP4中通过修改某些设置而使用后缀为*.php3的文件,并求好使的phpmychat1.0,要带install文件夹的.
- 帮我看看原代码~100分小修改
- Zend Cache for linux php 4.04 & 4.03 下载!!!!!!!
- 求解决sql php、问题
- discuz SQL查询求助
ini_set('display_errors','ON');
//2.打印下 $mod值 ,3.注意大小写(linux上有要求) $mod .= "Action";echo $mod;