Results 1 to 19 of 19
Thread: Extensions missing for PHP?
Sep 22, 2012, 08:30 #1
- Join Date
- Sep 2012
- Northern New Brunswick, Atlantic Canada
- 1 Post(s)
- 0 Thread(s)
Extensions missing for PHP?
Another complex question - that probably has a simple answer.
I am trying to execute a php code in my html file. It won't work at all. Doesn't even start.
A basic example, like:
echo "Hello There";
Nothing happens. NOTE: This is on a real server - not my local machine.
Full php files work, but not code islands in html.
The server is running Linux, and PHP Version 5.2.17.
The file I'm testing with is: i-graphicsdesign.com/test/index.htm
If you look at the page source you can see what's missing.
If I change the htm extension to php the file works.: i-graphicsdesign.com/test/index.php
Is there a different way of calling php on a Linux server,
does the php installation have to be configured to recognize htm as a possible php code source?
do I have to use the php extension on every file that contains php code?
Last edited by ralph.m; Sep 22, 2012 at 15:14. Reason: removed compromising server info