我如何确定确切的绝对路径?
文件在此。 我像这样指定它 :
include "/home/core/public_html/d/core/source/class.Control.php";
但它告诉我它不是。
严重性 > 致命错误: 在 / home/ core/ public_ html/ d/ core/ sources/ sources/ class. ControlEntry.php 在 {%/ strong> 中找不到等级控制 。
守则:
<?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();
< 坚固> 卢布射击列表 坚固 >