Thanks for your reply.
Am running apache, os centos 7 , i set the permission also properly, in command line its working properly, suppose my program is located in /var/www/html, i run like this php /var/www/html/test.php..in command promat its working but in browser, like...