php is not working
Page 1 of 1
php is not working
i've installed xampp in my system. whenever i see my php file in browser it doesn't show proper output. for example if the code is this:<html>
<body>
<?php
echo<p>"Hello World"</p>;
?>
</body>
</html>
my output in the browser will be Hello World";?> it is typing everything after the double coats. what's the problem...????
Re: php is not working
Hello,The correct syntax is: <?php echo "<p>Hello World!</p>"; ?>
HTML tags are text, they have to be written inside the double quotes.
Last edited by zakariadza on Fri Jun 29, 2012 9:30 pm, edited 1 time in total.
Re: php is not working
Did you saved your page as .PHP extension ?Page 1 of 1