FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » why php echo does not show up in HTML?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: why php echo does not show up in HTML? [message #181615 is a reply to message #181613] Fri, 24 May 2013 08:53 Go to previous messageGo to previous message
steve nospam is currently offline  steve nospam
Messages: 11
Registered: May 2013
Karma:
Junior Member
On May 24, 3:08 am, steve nospam <steve.nosp...@gmail.com> wrote:
> newbie.
>
> could someone explain why this does not work?
>
> <!DOCTYPE html>
> <html>
> <body>
> <p>before
>
> <?php echo "do you see this?"; ?>
>
> <p>after
> </body>
> </html>
>

I have found out by trial and error is that when I change the file
extension to .php instead of .htm, then it works.

However, I read that php can be used inside .htm? I do not want to
change all my .htm file extensions to .php as that will break many
links I have.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PHP Contact Form, mt-rand(), problem Validating 1 input
Next Topic: Parsing mbox files with Windows Php
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 00:33:23 GMT 2024

Total time taken to generate the page: 0.04398 seconds