[英]PHP Fatal error: Class not found in C:\xampp\htdocs\
I have a problem in PHP 我在PHP中有问题
Fatal error: Class not found in C:\\xampp\\htdocs. 致命错误:在C:\\ xampp \\ htdocs中找不到类。
In my sumber.php file theres a class Hope. 在我的sumber.php文件中,有一个类Hope。
Please help me thanks 请帮我谢谢
<?php
// include('cekSession.php');
?>
<div ui-content-for="title">
<span>Book APPT</span>
</div>
<div class="scrollable">
<div class="scrollable-content">
<div class="section">
<?php
$sumberData = new Hope();
$ListDoctor = $sumberData->getListDoctor();
print_r($a);
?>
You need to include
or require
the file which contains your Class
definition. 您需要include
或require
包含Class
定义的文件。
Any of the following will be suitable, which one you use depends on whether you need to be notified if the file was / wasn't found. 以下任何一种都适用,您使用哪种取决于您是否需要在未找到文件的情况下得到通知。
See This question and Answer for an example 有关示例,请参见此问答。
<?php
//include 'sumber.php';
//require 'sumber.php';
//include_once 'sumber.php';
//require_once 'sumber.php';
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.