php的zend相对路径问题
- php语言
- 关注:2.72W次
php下使用zend相对路径的处理方法,就跟随本站小编一起去了解下吧,想了解更多相关信息请持续关注我们应届毕业生考试网!
<?php
define ('P_S', PATH_SEPARATOR);
define ('ROOT', "../");
set_include_path(ROOT .P_S .'Zend' .P_S _include_path());
require_once ROOT.'Zend/';
Zend_Loader::loadClass('Zend_Db');
Zend_Loader::loadClass('Zend_Config_Ini');
Zend_Loader::loadClass('Zend_Page');
$config = new Zend_Config_Ini('../inc/', 'general');
$db = Zend_Db::factory($config->db->adapter,$config->db->config->toArray());
?>
<?
//查询
$select=$db->select();
$select->from("UserGroup","*");
$action_log=$db->fetchAll($select);
foreach ($action_log as $arr){
?>
<input type="checkbox" name="usergroup[]" id="usergroup[]" value="<?=$arr['lsh']?>"> <? echo $arr['Name'];?>
<?
}
?>
- 文章版权属于文章作者所有,转载请注明 https://xuezhezhai.com/jsj/php/r2gngg.html