I like to create the application with AGI Programing.
In the PHP file I need to get the current DateTime of server. for get that in php I use this syntax ($date = new DateTime()) But when I use this my AGI program can’t run correctly.
In the external PHP file when I use that syntax easily I can get the system correct Date and Time…!!!
I have a question, we can’t use PHP syntax in the AGI programing whit PHP language?
This location of my file in var/lib/asterisk/agi-bin/Sample.php
Guys please advice me.