2014-01-28 174 views
0
我使用PHP http://phpgrid.com它datagrid.But顯示2個錯誤,說無法acccess

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(); 

?> 

回答

2

對不起,我不能添加一個命令。

myGrid.php與「/admin/phpGrid/conf.php」路徑相關的位置在哪裏? 問題是:從myGrid.php文件到conf.php文件的路徑是否正確?