Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/240.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 致命错误:类';SQLite3';在netbeans中找不到_Php_Sqlite_Netbeans - Fatal编程技术网

Php 致命错误:类';SQLite3';在netbeans中找不到

Php 致命错误:类';SQLite3';在netbeans中找不到,php,sqlite,netbeans,Php,Sqlite,Netbeans,我想在NetBeans中实现SQLite和PHP之间的连接。我已经在SQLite中成功创建了数据库,并且连接也成功完成。现在我想执行简单的查询,所以我编写了以下代码。但它显示 致命错误:在第15行的C:\Users\Akshay\Documents\NetBeansProjects\Sample\index.php中找不到类“SQLite3” <?php /** * Simple example of extending the SQLite3 class and changing the

我想在NetBeans中实现SQLite和PHP之间的连接。我已经在SQLite中成功创建了数据库,并且连接也成功完成。现在我想执行简单的查询,所以我编写了以下代码。但它显示

致命错误
在第15行的C:\Users\Akshay\Documents\NetBeansProjects\Sample\index.php中找不到类“SQLite3”

<?php
/**
* Simple example of extending the SQLite3 class and changing the __construct
* parameters, then using the open method to initialize the DB.
*/
class MyDB extends SQLite3
{
function __construct()
{
$this->open('C:\\SQLITE\\TravelMate.db');
}
}
$db = new MyDB();
$result = $db->query('SELECT * FROM admin');
var_dump($result->fetchArray());
?>


为什么不使用相对路径?请详细说明一下。我对这东西不熟悉。。。。plz.relative path是指项目文件夹中的路径