I am having a php script that i would like to run on CLI (Command line Interface). I have used some echo statements in class a's constructor and from there I am calling its parrent constructor where i am using one more echo statement. i am not able to see the parent class's echo statement however If i run the same script with browser i can see all the echos. here is a part of my code.
class CImportEmployeeScript extends CScripts {
function __construct() {
echo "Child File Constructor";
parent::__construct();
}
----
----
}
class CScripts {
function __construct() {
echo "In Parrent File";
}
----
----
}
If my php files (Child And Parrent) do not use same path is their any possibility of the above problem..
CImportEmployeeScriptand you only seeChild File Constructoroutput instead ofChild File ConstructorIn Parrent Fileas you would expect from the above script? Do you get any error messages? Please can youini_set('display_errors', 1); error_reporting(E_ALL);at the top of your script?