Hi there, I have been at this for days now...just cant fix the problem. I've installed gentlesource comment script on my html. test site. It works fine once you have set up the include file in the same directory as your web pages, and placed the php code on your comment pages, and saved your html file to php. I dont want to change every page on my site to php so i want to configure my godaddy shared linux php4 server to parse .html files for php scripting. I have used a million ht access codes adhandlers, add types , remove handlers, action applications and everything else i could find on the net, but i just cant get it to work. I must be doing something wrong. The file was originally an html file... a couple of lines of php code were added, and then file was saved to php. The file.php works fine, comment script works. I then resave it to .html, add a couple of code lines to ht accecss, and most of the time nothing happens....no comment form.. Some codes give me...... Requested url not found, some give cgi-bin errors, some give me nothing and some give me firefox requesting to download the test page.......but nothing else. The php code in the html file has php tags around it, the rest is html. i dont want to use redirects. I can't cop out now, cause i've been at it for days. Please, somebody save me ! I know its something simple. I've used every code in the book
I think your problem is with godaddy and the crap way they handle server security.. Stick that stuff somewhere else and call it day. It should work out of the gate. For instance, I had to make some some apache mods via htaccess the other day for someone here and it does not even update properly for several hours. I have used godaddy for years to reg stuff because I keep things in the same account. I don't care if it costs 10 dollars. That said, their hosting sux something fierce. Period.... Nigel
yeah, i have tried that, and many others.... and when i checked digital point for help, i tried loads more.... I can't help thinking that I'm missing something that every one else takes for granted... i am on a massive learning curve with all this, but i feel i've missed something simple...something to do with the script include or the server or htaccess...?Do i have to take the php tags out or something ? if someone could give me a thorough dummies check point list, then i could see if i've got it right or wrong.. starting from scratch my htaccess only has RewriteEngine On RewriteRule ^link/([/_0-9a-zA-Z etc......etc.. in it stripping the page down to basics..the working php file that i want to turn back into a html file reads... <?php include './include.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <link rel="stylesheet" href="/comments/template/default/style.css" type="text/css" /> </head> <body> <?php echo $c5t_output; ?> </body> </html> This file is now saved as test.php....and works fine.. Please turn me into test.html I cant even get it to work as a SSI. The instructions are to use <!--#include virtual="./include.php?c5t_ssi=1"--> instead of <?php echo $c5t_output; ?> My SSI tests work using dates /counters. etc. on html pages. but not this.. Any more ideas ?
just to add to it... i've also used... Action application/x-php /cgi-bin/php AddHandler application/x-php .html .htm .... RemoveHandler server-parsed html AddType application/x-httpd-fastphp .html Action application/x-httpd-fastphp /cgi-bin/php .... AddHandler x-httpd-php .html .htm .cgi .php ....... AddType application/x-httpd-php .html .php .phtml ....... AddHandler application/x-httpd-php .html .htm ... etc..