Author |
|
Mungbeans
Joined: 11 Aug 2006 Posts: 10 Location: Sydney, Australia
|
Posted: Fri 11 Aug '06 6:58 Post subject: php parsing .htm files |
|
|
Before my upgrade to Apache 2 and Php5, I used to have php parsing .htm and .html files as well.
I had this in my httpd.conf:
AddType application/x-httpd-php .php .htm .html
Since the upgrade I get an application error (The instruction at x referenced memory at x. The memory could not be read. ") if I add the additional extensions.
Any ideas why? |
|
Back to top |
|
pnllan
Joined: 05 Dec 2005 Posts: 221
|
Posted: Fri 11 Aug '06 7:08 Post subject: |
|
|
You are upgrading from Apache 1.x, right?
I'm not being terse, but why would you do that? Just leave it at:
Code: | AddType application/x-httpd-php .php |
|
|
Back to top |
|
Mungbeans
Joined: 11 Aug 2006 Posts: 10 Location: Sydney, Australia
|
Posted: Fri 11 Aug '06 8:21 Post subject: |
|
|
Quote: | but why would you do that? |
Well, I had to upgrade php and mysql (so I was instep with my new webhosting) so I thought while I was in upgrade mode... Obviously not a good decision. I'm now at the stage where I can't get any of my applications to work.
I've give up on the .htm parsing thing. I'll just have to get myself out of the habit of saving documents with .htm
Now onto trying to get MySQL back into action.. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 11 Aug '06 9:01 Post subject: |
|
|
.php files are parsed normal? And .htm not?
How does the rest of the php config look in the httpd.conf? |
|
Back to top |
|
Mungbeans
Joined: 11 Aug 2006 Posts: 10 Location: Sydney, Australia
|
Posted: Fri 11 Aug '06 10:24 Post subject: |
|
|
I probably wasn't very clear. I used to have php code within my .htm and .html files as well, so I had them parsed by the php parser as well. The html in those files is still displaying fine. But the php code within them is not. |
|
Back to top |
|