TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 01-28-2009, 08:02 PM   #1 (permalink)
The Contributor
 
aristoworks's Avatar
 
Join Date: Nov 2007
Location: Nashville
Posts: 44
Thanks: 7
aristoworks is on a distinguished road
Default [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.
Send a message via AIM to aristoworks
aristoworks is offline  
Reply With Quote
Old 01-28-2009, 08:16 PM   #2 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

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.
__________________

Village Idiot is offline  
Reply With Quote
Old 01-28-2009, 08:23 PM   #3 (permalink)
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

Some links which may or may not help at all (just a big G search):
Salathe is offline  
Reply With Quote
Old 02-07-2009, 02:54 AM   #4 (permalink)
The Visitor
 
GDHosting's Avatar
 
Join Date: Jan 2009
Posts: 1
Thanks: 0
GDHosting is on a distinguished road
Default

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,
__________________
Alicia R.
Go Daddy Hosting
GDHosting is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
10 PHP Myths Dispelled Wildhoney General 9 06-15-2009 06:55 AM
how to insert html or php code into a table? sarmenhb Absolute Beginners 7 09-07-2008 12:23 PM
Embeding PHP inside HTML documents Orc General 8 01-18-2008 08:10 PM
Starting with php in my html page Shinoken Absolute Beginners 5 01-08-2008 02:34 PM
Make html pages work like php sam Tips & Tricks 2 02-09-2007 01:00 PM


All times are GMT. The time now is 11:40 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design