PHP in htm problem

Posted by HWLJr, 03-04-2010, 07:59 PM
I have a Blue Quartz server which seems to run htm, html and php pages just fine. I can call a test.php report up no problem too from domains and subs. However, I cannot embed a php statement in an htm page. example from an htm page:
March 22, 2010
this does not work - no Hello shows up. I might add that when I added the code the first time, it worked for about 5 minutes! Thank you for any advice.

Posted by RS Shamil, 03-04-2010, 08:11 PM
Try: Notice the semicolon, delimiter.

Posted by _mediapig_, 03-04-2010, 08:21 PM
I believe if memory serves me correctly that the Page would have to be saved as a .php file for the php to be parsed by the php server. Unless you have configured php to parse .htm and .html files, which I dont think it is set to do by default.

Posted by HWLJr, 03-04-2010, 09:05 PM
and tried this but this did not work - pardon my lack of knowledge - how/where can I configure the php to parse as you suggest? Thanks

Posted by jweeb, 03-04-2010, 09:11 PM
Did you save the file as a php file?

Posted by FrankLaszlo, 03-04-2010, 09:15 PM
Most hosting companies are only setup to parse files ending with the '.php' extension through the php interpreter. You can override this default behavior by adding something like this to the sites .htaccess: This may or may not work depending on how your server is configured.

Posted by HWLJr, 03-04-2010, 09:16 PM
That works! I'll continue testing... thank you

Posted by HWLJr, 03-04-2010, 09:19 PM
I'll try that too as I have none now. Thanks

?האם התשובה שקיבלתם הייתה מועילה

 הדפסת המאמר

קראו גם

Managed server

Posted by jamesthorpe, 06-25-2008, 07:14 PMHey guys, I am having some problems with a server...

Image storage

Posted by Skeptical, 01-27-2011, 03:07 AMSuppose a website is running on 3 web servers, and there...

script that help to print on 2 printers?

Posted by bambinou, 10-30-2012, 06:21 AMHello, Do anyone of you know where to get a script...

LINUX BASH : keep the order in STD* output tunnels

Posted by Mister Bark, 10-31-2012, 11:17 AMHi! This will make a file "test" : ... and not :...

shared nameservers for dedicated server clients`

Posted by Calibaba, 01-13-2008, 09:10 PMIs there a way to use ns1/ns2.yourhostdomain.com for not...