Forum Moderators: coopster

Message Too Old, No Replies

possibly misconfigured server

problems with php on my new host provider

         

moishe

5:50 am on Jan 30, 2004 (gmt 0)

10+ Year Member



Howdy Ya'll
I recently switched hosting providers, on my previous provider I had include tags in .html files, they worked fine. After I moved to the new one, they stopped working. I sent support a question and this was their response:

Q: Jan 30 13:29 Mike Richardson Jr.: Subject: PHP ¦
Is PHP working on the server? It does not seem to be working IE:
ht$p://www.~~~~~~.vi/test/
thank you
A: Jan 30 13:37 Support38: Subject: PHP ¦
Hello,

In order to get PHP to work, you must give a .php extensions to them. We have renamed the index.html file to index.php and now it is working. Please test it, and report any problems here.

Best Regards,
Support

Is there something misconfigured on their server?

jatar_k

5:00 pm on Jan 30, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



not misconfigured, just differently configured.

They don't turn on php parsing for the .html extension it would seem. You could ask them if you could use .htaccess to enable it. You would need to add something like

AddHandler application/x-httpd-php .html

moishe

7:49 pm on Jan 30, 2004 (gmt 0)

10+ Year Member



Thanks,
I edited the .htaccess with that line and the problem was solved.