I have installed Apache, PHP, MySQL separately (without WampServer). Now I would like to run following code
<?php
$d1=new DateTime('NOW');
print_r( $d1 ) ;
?>
But I am not getting any output. When I run same code on WampServer I got expected result. Do I require to make any changes in settings?