PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hi, I've got two servers. And this script generates a windows .reg file and sends it to the browser to download. One my dev server everything works great, but my other server, it doesn't send the right filename.
It should send IBS_Dev_News_Account.reg, but on the second server it sends genreg.php (which is the name of script that generates the reg file). Any ideas? Both servers are Win32 running Apache 2.0.x and PHP 4.3.10.
*NOTE* I fixed this by turning mod_deflate off in Apache !
Last edited by Pyrite on Mon Apr 04, 2005 7:45 am, edited 2 times in total.
I haven't tried, I am convinced the problem is not with the code, but rather the configuration of either php.ini (most likely) or httpd.conf . It is not a code problem I know that for sure, unless it is syntatically incorrect.
I guess what I'm asking is what settings in php.ini affect the usage and effect of the header() function?
I've run into this problem with the filename being named the php file, and agree that it's mod_deflate. Does anyone have a solution to turn off deflate for just this purpose, and not all together?