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

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -