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 #181708 is a reply to message #181627] Sun, 26 May 2013 14:02 Go to previous messageGo to previous message
Richard Yates is currently offline  Richard Yates
Messages: 86
Registered: September 2013
Karma:
Member
On Fri, 24 May 2013 06:20:03 -0700 (PDT), steve nospam
<steve(dot)nospamm(at)gmail(dot)com> wrote:

> 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?

I sympathize. I had a similar situation with a site with some html and
some php files. As i refined it and added features i found that pages
I thought would never need dynamic content did.

There are awkward workarounds, but best might be to just switch all
html files to php. Use a global search-and-replace to change all
instances of '.html' to '.php' and your internal links will all work.

If you need to make a few html redirect pages for folks that have
bookmarked the html links, all you need to redirect index.html is:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Home</title>
<meta http-equiv="REFRESH"
content="0;url=http://www.yoursite.org/index.php"></HEAD>
<BODY>
</BODY>
</HTML>
[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: Sat Nov 23 22:50:03 GMT 2024

Total time taken to generate the page: 0.04789 seconds