如何指定确切的绝对路径?
文件在这里。我这样指定:
include "/home/core/public_html/d/core/source/class.Control.php";
然而它告诉我它不是。
*致命错误:在线 /home/core/public_html/d/core/source/class.ControlEntry.php 中找不到类“控制”*
代码:
<?php
class ControlEntry
{
private $control_object;
function __construct( $control_object )
{
$this->control_object = $control_object;
}
public function actuate()
{
if( isset($_POST['ajax_type']) )
{
$this->control_object->ajax( $_POST['ajax_type'] );
}
else
{
$this->control_object->reload();
}
}
}
include "/home/core/public_html/d/core/source/class.Control.php"; // Can not find this f***ing file even though it is there.
$control_entry_object = new ControlEntry( new Control() );
$control_entry_object->actuate();
故障排除列表