How can I specify the exact absolute path?
File is here. I specified it like this:
include "/home/core/public_html/d/core/source/class.Control.php";
Yet it tells me it is not.
*Fatal error: Class ‘Control’ not found in /home/core/public_html/d/core/source/class.ControlEntry.php on line *
Code:
<?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();
Troubleshooting List
The error originates from
class.ControlEntry.php. Make sure you loadclass.Control.phpbefore you load ControlEntry.