Ask a Question related to PHP Development, Design and Development.
-
Mukul Sabharwal #1
Re: [PHP] files being downloaded when a 404 occurs
Look at this bug file :
[url]http://bugs.php.net/bug.php?id=25009[/url]
It's been fixed in the CVS snapshots, anything after
the 11PM GMT on the 10th of August works.
hth.
--- Rigi Toney <anony@pauridge.org> wrote:=====> Hello,
>
> I'm using Apache 2.0.47 (Unix) with PHP 4.3.3RC2.
>
> My httpd.conf file reads :
>
> AddType application/x-httpd-php .html
>
> ... and then a little further down
>
> ErrorDocument 404 /404redir.html
>
> (404redir.hml is a PHP file, consisting of : <?php
> header("Location:
> /404.html"); ?> ) The reason why I do this is so
> that
> the Google Adsense
> doesnt' display welfare ads, since the 404 page
> contains a lot of keywords!
>
> Anyway, the problem is this.
>
> When a 404 occurs, for say a directory ...
> [url]http://localhost/heidkjsdjksd[/url]
> .... which doesnot exist... everything works
> great...
> i get redirected as
> per requirement. Now when a .php files occurs .. it
> still works
> ([url]http://localhost/sdjkdkjskd.php[/url]) .... BUT when a
> .html files occurs...
> [url]http://localhost/crap.html[/url] .... it starts to
> download
> the file... and the
> browser says can't download!!!
>
> And now when I add a .php file to my AddType... it
> happens for the .php file
> too... so since i've moved my website.. and had .php
> files... i can't use
> the .php extension otherwise 404's don't get logged
> and taken care of!
>
> Help appreciated. thank you.
> Tony.
Mukul Sabharwal (mjsabby@yahoo.com)
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
[url]http://sitebuilder.yahoo.com[/url]
Mukul Sabharwal Guest
-
Downloaded JPEG files not recognized
JPEG Files saved off of the internet using xplorer 5 are not being recognized by Photoshop 6.0. Any Suggestions as to why? -
#25009 [Fbk->Csd]: PHP files being downloaded on 404's if application/x-httpd-php contains da ext.
ID: 25009 Updated by: sniper@php.net Reported By: mjsabby at yahoo dot com -Status: Feedback +Status: ... -
#25009 [Csd->Fbk]: PHP files being downloaded on 404's if application/x-httpd-php contains da ext.
ID: 25009 Updated by: sniper@php.net Reported By: mjsabby at yahoo dot com -Status: Closed +Status: ... -
#25009 [Opn->Csd]: PHP files being downloaded on 404's if application/x-httpd-php contains da ext.
ID: 25009 Updated by: iliaa@php.net Reported By: mjsabby at yahoo dot com -Status: Open +Status: ... -
Unable to delete files and folders I downloaded before
First thing I'd would be to uninstall the program that is associated with this particular program. Use the uninstall routine first. If this is a...



Reply With Quote

