|
Home > Archive > Apache Server configuration support > January 2005 > PHP works with .php files, but not in .htm
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
PHP works with .php files, but not in .htm
|
|
| Mark Mullen 2005-01-28, 8:53 pm |
| I am a new to this and am thankful to anyone of you that can help me, so
thanks in advance.
All my scripts and html is in c:\Program Files\Apache Group\Apache2\htdocs.
I have no idea why my .php scripts work when brought up in a browser but not
htm with php inlcudes or simple echo statements.
..
I set up the PHP5 and APACHE 2 on WindowsXP for learning. I Ran the <?php
phpinfo();?> This is what I got. Anyone have any ideas what I am doing
wrong?
PHP Version 5.0.3
System Windows NT MJ1 5.1 build 2600
Build Date Dec 15 2004 08:06:41
Configure Command cscript /nologo configure.js
"--enable-snapshot-build" "--with-gd=shared"
Server API Apache 2.0 Handler
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\php\php.ini
PHP API 20031224
PHP Extension 20041030
Zend Extension 220040412
Debug Build no
Thread Safety enabled
IPv6 Support enabled
Registered php Streams php, file, http, ftp, compress.zlib
Registered Stream Socket Transports tcp, udp
| |
| unbending 2005-01-29, 2:47 am |
| Only *.php files are recognized as containing php code and only they
execute that code. You need to change the mime-type for *.html pages to
behave like the *.php pages.
| |
| Mark Mullen 2005-01-29, 2:47 am |
| Pieter <P.dfm@wsx.nl> email worked. Thanks.
"Mark Mullen" <mbjmullen@verizon.net> wrote in message
news:YSAKd.780$VW3.383@trndny07...
>I am a new to this and am thankful to anyone of you that can help me, so
>thanks in advance.
>
> All my scripts and html is in c:\Program Files\Apache
> Group\Apache2\htdocs. I have no idea why my .php scripts work when brought
> up in a browser but not htm with php inlcudes or simple echo statements.
> .
> I set up the PHP5 and APACHE 2 on WindowsXP for learning. I Ran the <?php
> phpinfo();?> This is what I got. Anyone have any ideas what I am doing
> wrong?
> php Version 5.0.3
>
> System Windows NT MJ1 5.1 build 2600
> Build Date Dec 15 2004 08:06:41
> Configure Command cscript /nologo configure.js
> "--enable-snapshot-build" "--with-gd=shared"
> Server API Apache 2.0 Handler
> Virtual Directory Support enabled
> Configuration File (php.ini) Path C:\php\php.ini
> php API 20031224
> php Extension 20041030
> Zend Extension 220040412
> Debug Build no
> Thread Safety enabled
> IPv6 Support enabled
> Registered php Streams php, file, http, ftp, compress.zlib
> Registered Stream Socket Transports tcp, udp
>
>
|
|
|
|
|