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 #181646 is a reply to message #181637] Fri, 24 May 2013 15:02 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:d52747cd-b74d-4242-8ffe-
ef95fe376a68(at)g3g2000yqg(dot)googlegroups(dot)com:

>
>>
>> You get your:
>>
>> AddType application/x-httpd-php .htm
>>
>> added to the apache config file on the server.
>>
>
> What I did is add the above line to my .htaccess file on my home page.

Wrong place. As Tim told you, you need to add this to the Apache config file.

> And it worked for apache server on my PC.

I doubt that. If you added it to the .htaccess file on your PC, it didn't work. If it did work, you
added to the Apache config file, not the .htaccess file.

> But when I did the same for
> my hosting company, then what happens when I clicked on the file, the
> browser was asking me to download the .htm file ! instead of opening
> it as a web page.

Right, that's what happens when you don't have things configured correctly...
>
> Do you think I need to add the above line to apache config file?

That's where Tim told you to add it....

> But
> my hosting company is public company, I have no control over what web
> server they are using and I can't ask them to edit the web server
> config files for me. This is a shared server.

The way this is normally done is that you create your own Apache config file in your web root
directory, and put whatever you need there that is specific to your configuration. Check with
your hosting provider for details on how to do this on their server.
[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 09:44:22 GMT 2024

Total time taken to generate the page: 0.05080 seconds