Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : using <?php inline in an HTML document



Threaded Mode | Print  

 using <?php inline in an HTML document, using <?php .. ?> inline does not work. Nothing happens (0 Replies, Read 333 times)
RMan
Group: Member
Post Group: Newbie
Posts: 1
Status:
In  my HTML document I have the following:
<?php
    echo "Hello Word";
?>

I executed my code in  localhost/test.html    But the browser displays nothing.
I viewed source of the display and found that the browser had commented out the php code by doing this:


<!--?php
  echo "Hello world";
?-->


How do I get the php to execute ?
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is October 21, 2019, 10:18 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.160