Check Markup in PHP File from Command Line
PHP has a feature that allowed you to check HTML mrkup in your PHP code using PHP command. Just use the -s switch with php command and php file. It will show the HTML markup of your php file.
First create php file “Hello.php”
- <?php
- echo “\n Hello PHP! \n”;
- ?>
Command to check markup in your PHP script:
- $ php -s hello-world.php
Below screen showing running php command with html markup
Follow @phpzag


really you have done a fantastic job..keep it up
You are my inspiration, I have few blogs and very sporadically run out from brand
. “Yet do I fear thy nature It is too full o’ the milk of human kindness.” by William Shakespeare.