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 #181627 is a reply to message #181617] Fri, 24 May 2013 13:20 Go to previous messageGo to previous message
steve nospam is currently offline  steve nospam
Messages: 11
Registered: May 2013
Karma:
Junior Member
>
> I found the problem.
>
> I needed to modify the .htaccess file. added this line
>
> AddType application/x-httpd-php .htm
>
> Now it works. php works from inside htm file. No need to change file
> extension.

guys, the above fix did not work on the server. Must be something with
the php used there. It worked on my local apache server. So, I still
looking for a solution. My question is this:

If I change my index.htm to index.php, is there a way to make an alias
or something so that not all my links are broken? so that a link to
index.htm will use index.php?

Ok, let me go back one step: This is all crazy, because all what I
wanted to do is simple: use php to include some common html code into
all my html web pages. So how is one supposed to do this if one can't
use php inside html?

I want to use php call to include common HTML code into an html page,
but can't use php from HTML? what is the deal here? So, how do people
do this thing then?
[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:35:31 GMT 2024

Total time taken to generate the page: 0.04088 seconds