php is not working
3 posts Page 1 of 1
php is not workingi'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:
my output in the browser will be Hello World";?> it is typing everything after the double coats. what's the problem...????
- Posts: 1
- Joined: Tue Jun 26, 2012 8:09 am
Re: php is not workingHello,
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.
- Posts: 24
- Joined: Wed Oct 12, 2011 9:44 am
Re: php is not workingDid you saved your page as .PHP extension ?
Page 1 of 1