Hey All,
I'm trying to get my server to parse my .HTML pages as .PHP pages as I'm using an RSS Script to show feeds on 2 of my sites.
The version of PHP on both sites is PHP 5 (specifically versions 5.2.5 and 5.2.6). The sites are located on basic "shared" apache web servers (ie: like hostgator).
I have the following line on my .HTACCESS File:
AddType application/x-httpd-php html
Now, adding the above code in my site's Root Directory (ie: "www" or "public_html") used to work perfectly for parsing my HTML pages as PHP. However, it seems as if the code is now causing a "File Download - Security Warning" pop-up window to appear when anyone visits my site's Home Page.
The pop-up reads "Name: mysite_com"; "Type: Unknown File Type"; and "From:
Basically, the pop-up asks the user if he wants to Save the File or find a program to open it. Worse still is that it seems as if some strange file is being downloaded to visitor's computer from my site as the standard Windows file download pop-up also appears.
I'm pretty sure that the cause of this problem is that line of code as when I've remove it, I no longer get the pop-up.
The crazy thing is that I'm using the exact same script on another site that uses PHP Version 4.4.7 and with the same line of code on the HTACCESS file. On that site, I do NOT experience this "File Download - Security Warning" problem.
Does any one have an idea what might be causing this? I'm pretty sure it's not the script itself.
Any and all Help, Insight, Comments, Ideas, and "AH HA! Moments" are greatly encouraged and appreciated.
Thanks! Peace.
- TYHAND
I'm trying to get my server to parse my .HTML pages as .PHP pages as I'm using an RSS Script to show feeds on 2 of my sites.
The version of PHP on both sites is PHP 5 (specifically versions 5.2.5 and 5.2.6). The sites are located on basic "shared" apache web servers (ie: like hostgator).
I have the following line on my .HTACCESS File:
AddType application/x-httpd-php html
Now, adding the above code in my site's Root Directory (ie: "www" or "public_html") used to work perfectly for parsing my HTML pages as PHP. However, it seems as if the code is now causing a "File Download - Security Warning" pop-up window to appear when anyone visits my site's Home Page.
The pop-up reads "Name: mysite_com"; "Type: Unknown File Type"; and "From:
Basically, the pop-up asks the user if he wants to Save the File or find a program to open it. Worse still is that it seems as if some strange file is being downloaded to visitor's computer from my site as the standard Windows file download pop-up also appears.
I'm pretty sure that the cause of this problem is that line of code as when I've remove it, I no longer get the pop-up.
The crazy thing is that I'm using the exact same script on another site that uses PHP Version 4.4.7 and with the same line of code on the HTACCESS file. On that site, I do NOT experience this "File Download - Security Warning" problem.
Does any one have an idea what might be causing this? I'm pretty sure it's not the script itself.
Any and all Help, Insight, Comments, Ideas, and "AH HA! Moments" are greatly encouraged and appreciated.
Thanks! Peace.
- TYHAND