logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: php parsing .htm files
Author
Mungbeans



Joined: 11 Aug 2006
Posts: 10
Location: Sydney, Australia

PostPosted: Fri 11 Aug '06 6:58    Post subject: php parsing .htm files Reply with quote

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

PostPosted: Fri 11 Aug '06 7:08    Post subject: Reply with quote

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

PostPosted: Fri 11 Aug '06 8:21    Post subject: Reply with quote

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

PostPosted: Fri 11 Aug '06 9:01    Post subject: Reply with quote

.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

PostPosted: Fri 11 Aug '06 10:24    Post subject: Reply with quote

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


Reply to topic   Topic: php parsing .htm files View previous topic :: View next topic
Post new topic   Forum Index -> Other Software