Re: Strange Download-File Problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ave,

I spent most of my afternoon going through everything in the computer, from
DOS to the Temporary Files Folder, pertaining to what was happening, and I
you're absolutely correct, because my findings also suggested me nothing
else but that Microsoft was screwing it up.

I think the solutions you have pointed me towards are probably the solutions
for my problem. 

I maintain my Apache Web Server on my PowerMac G5 machine. I have access to
the httpd.conf for my Apache Web Server. Do I need to add the <Files>
directive in the httpd.conf or somewhere else?

I'm going to look into the $_SERVER['PATH_INFO'] to help me solve my
problem.. But in case you do know of any relevant place where I may need to
look pertaining to my specific problem, I'd really appreciate if you could
direct me to it.

Thanks again,

Rahul S. Johari


On 12/3/04 1:01 PM, "Richard Lynch" <ceo@xxxxxxxxx> wrote:

> Rahul S. Johari wrote:
> href=\"imsafm2_download.php?F=imsafm/$showfilesuser/$myrow[filename]\"><img
>> src=b_newtbl.png border=0></a>
> 
> One thing you might want to try...
> 
> I've noticed over the years that Microsoft will usually manage to screw up
> if you've got a dynamic URL.  I really don't understand (or care) why
> Microsoft engineers are too stupid to handle dynamic content, but there it
> is.
> 
> So you just get rid of anything in the URL that lets Microsoft screw up.
> 
> There are several articles/tutorials on the net how to use
> $_SERVER['PATH_INFO'] and embed the file you want in the URL.
> 
> The goal here is to change the URL that looks like this:
> imsafm2_download.php?F=imsafm/rahul/somefile.txt
> 
> into a URL that looks like this:
> imsafm2_download/F=imsafm/rahul/somefile.txt
> 
> You'll also need to use .htaccess to force Apache to use PHP on
> imsafm2_download (rename the file without the .php)
> 
> <Files imsafm2_download>
>   ForceType application/x-httpd-php
> </Files>
> 
> The over-arching reason for doing all this, is to give Microsoft *NO*
> opportunity to SCREW UP.
> 
> If the browser can't tell that it's not a plain old bring static file, it
> can't screw it up.
> 
> You also need to do this for dynamic images, dynamid PDFs, FDFs, Ming
> (Flash) files, and pretty much any other rich media content that you
> generate dynamically.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux