I'm trying to use a php proxy script from http://sourceforge.net/projects/php-proxy/
I have a website hosted on one server and I want to use this script to have a second identical site.
When I try to use it it gives me the page as a download. The browser prompts me to save the .php file as if it couldn't be displayed. Other then that I think it is working properly. The contents of the downloaded file looks fine to me.
Could there be a problem in the header to make the browser prompt me to save the file?
Thanks
prompted to save .php files
Moderator: General Moderators
Re: prompted to save .php files
Sounds like a problem with the Mime-types on the server. Either that or you are setting the content type in the PHP to a filetype that it is trying to download.codr wrote:I'm trying to use a php proxy script from http://sourceforge.net/projects/php-proxy/
I have a website hosted on one server and I want to use this script to have a second identical site.
When I try to use it it gives me the page as a download. The browser prompts me to save the .php file as if it couldn't be displayed. Other then that I think it is working properly. The contents of the downloaded file looks fine to me.
Could there be a problem in the header to make the browser prompt me to save the file?
Thanks
Re: prompted to save .php files
Thanks. After looking into the code it wasn't recognizing the mime type.
I added the line
to the config file and it seems to help.
I added the line
Code: Select all
$mime_dl["text/html; charset=utf-8"]=false;