html - Wrong output in my php code in EditRocket -
i created hello.php
file in editrocket
on mac , wrote simple code
<html> <body> <?php echo "hello world!"; ?> </body> </html>
but got wrong output
<html> <body> hello world!</body> </html>
the correct output hello world!
only.
what doing wrong?
your problem - interpreter dumps whole output script design.
output hello world!
only for internet browsers, html renderers.
web browsers can read html files , render them visible or audible web pages. browsers not display html tags , scripts, use them interpret content of page.
they parsing html , gives graphical representation.
if want print hello world!
whole output remove html tags code consist of:
<?php echo "hello world!"; ?>
Comments
Post a Comment