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 #181642 is a reply to message #181636] Fri, 24 May 2013 14:38 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 5/24/2013 10:14 AM, steve nospam wrote:
>
>> 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. I need to include common html code to every html file
> I have. 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.
>

You only need to change the file names for those files which include php
code. Files which do not contain HTML code need no changes. But yes,
if you're going to add php code to thousands of html files, then you
need to change the extensions of thousands of files.

And no, the external links are NOT broken if you do a permanent redirect
as I suggested before. That's what it is there for.

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

No, it is not too late if you understand how to properly configure your
web server.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[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:35:15 GMT 2024

Total time taken to generate the page: 0.04231 seconds