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 #181647 is a reply to message #181636] Fri, 24 May 2013 15:12 Go to previous messageGo to previous message
Doug Miller is currently offline  Doug Miller
Messages: 171
Registered: August 2011
Karma:
Senior Member
steve nospam <steve(dot)nospamm(at)gmail(dot)com> wrote in news:f8f531ee-6d30-49e5-a981-
b7725a253276(at)o2g2000yqb(dot)googlegroups(dot)com:

>
>> Your best bet is to simply change the files you need to include PHP code
>> in to a .php extension and fix the links on your site.  For external
>> links, configure your web server to do a permanent redirect from the old
>> page to the new (see your web server configuration for more information
>> on how to do this).
>
> I can't do this.

Yes, you can.

> I need to include common html code to every html file
> I have.

I understand that.

> This means I have to change the extension of 1000's of html
> files to .php and therefore any outside links and any google searches
> will be broken now.

No, it does *not* mean that. As Jerry said -- configure your web server to do a permanent
redirection from the old page to the new.

See http://www.somacon.com/p145.php for ideas. The section most likely to be useful to
you is about 1/3 of the way down the page, "Redirection with mod_rewrite".

> May be I should have done this at first, but too late now to change
> index.htm to index.php.

So don't change them. Redirect them.
[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 30 23:41:54 GMT 2024

Total time taken to generate the page: 0.04199 seconds