TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   [CGI] Parsing PHP in HTML (http://www.talkphp.com/general/3919-cgi-parsing-php-html.html)

aristoworks 01-28-2009 08:02 PM

[CGI] Parsing PHP in HTML
 
Greetings,

A client has opened a shared account on GoDaddy. The problem is that we always work with PHP running as Apache Module but GoDaddy's shared account run PHP through CGI.

Under apache parsing PHP inside *.html documents is as easy as adding a line to .htaccess. Well that doesn't work for us and the PHP is being printed out.

I've googled but haven't found anything that works for us and since the client has already been through 3 other hosting companies which for one reason or another just wouldn't work for them - I hate to ask them to reconsider again.

Village Idiot 01-28-2009 08:16 PM

To start, godaddy sucks, they are a terrible host among the terrible territory of shared hosting.

There may be an option on their admin CP to allow HTML MIME types to be parsed as PHP.

Salathe 01-28-2009 08:23 PM

Some links which may or may not help at all (just a big G search):

GDHosting 02-07-2009 02:54 AM

I just came across this post, so hopefully this has been resolved already. If not, the link that Salathe posted (see below) has the information you need. You will also need to run config 2.0 as the article states.

http://help.godaddy.com/article/1082

On another note, we don't encourage you to parse all of your .html pages as .php, because that means php has to load for every .html page request. It's much faster for .html pages to simply be processed by apache.

I expect this is all you will need. Let me know if you need further assistance.

Regards,


All times are GMT. The time now is 01:33 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0