path.Here是我的道路的和配置,無法訪問路徑phpGrid
phpgrid文件夾
localhost:8090/MySite/admin/phpGrid
它顯示這2個錯誤。
Warning: require_once(/admin/phpGrid/conf.php): failed to open stream: No such file or directory in C:\wamp\www\mySite\admin\myGrid.php on line 2
Fatal error: require_once(): Failed opening required '/admin/phpGrid/conf.php' (include_path='.;C:\php\pear') in C:\wamp\www\mySite\admin\myGrid.php on line 2
這裏是我的php.conf文件
<?php
// mysql example
define('PHPGRID_DB_HOSTNAME','localhost'); // database host name
define('PHPGRID_DB_USERNAME', 'root'); // database user name
define('PHPGRID_DB_PASSWORD', ''); // database password
define('PHPGRID_DB_NAME', 'testdb'); // database name
define('PHPGRID_DB_TYPE', 'mysql'); // database type
define('PHPGRID_DB_CHARSET','utf8'); // ex: utf8(for mysql),AL32UTF8 (for oracle), leave blank to use the default charset
define('SERVER_ROOT', '/admin/phpGrid');
/******** DO NOT MODIFY ***********/
require_once('phpGrid.php');
/**********************************/
?>
這裏是myphp文件(myGrid.php)
<?php
require_once("/admin/phpGrid/conf.php");
$dg = new C_DataGrid("SELECT * FROM newtbl", "Id", "newtbl");
// change column titles
$dg->set_col_title("Id", "Number");
$dg->set_col_title("Name", "FirstName");
$dg -> display();
?>