View Single Post
  #13 (permalink)  
Old 01-29-2008, 10:25 AM
wige's Avatar
wige wige is offline
Moderator
WebProWorld Moderator
 

Join Date: Jun 2006
Location: United States
Posts: 1,782
wige RepRank 4wige RepRank 4wige RepRank 4wige RepRank 4
Default Re: Missing characters on Host

I swear, I looked thought about this for about twenty minutes trying to find an alternative before I actually tested it to replicate the problem. I think I found part of the problem. All the areas that should have "<?php" or "?>" instead have "&lt;?php" and "?&gt;" which your processor can not interpret.

However, because this code is not passing through the PHP parser at all, the MIME type from the server is incorrect, which causes problems with Firefox. I would recommend rechecking the PHP script, and then have your host check the configuration settings. I have seen some hosts, for example, lock the AddType method to prevent users from mapping .html files to the PHP processor. This does not seem to be the case, however, as the MIME type I get from the server is in fact application/x-httpd-php. However, I don't think that is the type that the PHP processor is mapped to on the server. It is possible that some other type has been assigned to the PHP handler.

If all else fails, you could try the following code:
AddHandler php5-script .html
__________________
The best way to learn anything, is to question everything.

Last edited by wige : 01-29-2008 at 10:41 AM.
Reply With Quote