Archive for the ‘Internet Explorer’ Category

Google Chrome version 58 Emulate User-Agent (UA) so hard to find!

Tuesday, May 9th, 2017

This functionality keeps moving. If you Google it, depending on the version, it could be super hard to find. I finally re-found where to change the User-Agent, at least in my current version of Chrome, at the time of this posting, version 58.

NOT easy to find, nor Google, ironic eh, but super useful. I was needing to emulate IE7, which is what Oracle’s console “Browser Control” utilizes (so lame, keep up people). Anyway:

  • Obviously, open the developer tools (I prefer to right click->inspect element)
  • Bottom right corner (if docked at the bottom of the window), Top right corner (if docked to the right side, this is where I prefer it), is a three little dots menu
  • more tools->Network conditions (seriously?)->User Agent!!

Credit/thanks to:

IE7 php force download FIX

Friday, April 30th, 2010

Normally, as anĀ  accomplished programmer, you use all the headers, follow the guidelines, include what you should…

but, when Microsoft won’t play by the rules, you have to fudge…

IE7 rejects forced downloads (in this example I was using doing PDF, mp3, zip, and m4b files).

It opens the download dialog, chooses a location, and then commences to quit having downloaded 0 bits.

So, instead of the dutiful example elsewhere in this blog that chooses the correct content-type, length, transer encoding and so on…

We just do this, seems to work, forces it somehow, sorry, I’ve no further explanation…:


$filename = $_GET[‘file’];
// required for IE, otherwise Content-disposition is ignored
ini_set(‘zlib.output_compression’, ‘Off’);

$file_extension = strtolower(substr(strrchr($filename,”.”),1));
if( $filename == “” )
echo “<html><title></title><body>ERROR: download file NOT SPECIFIED.</body></html>”;

header(“Cache-Control: maxage=1”);
header(“Content-Type: application/force-download”);
header(“Content-disposition: attachment; filename=\””. $filename .”\”;” );
@readfile(“$filename”) or die(“File not found.”);


IE height CSS sheet hack example

Monday, March 8th, 2010

.class_name {
min-height: 10px;
height: auto !important;
/*ie6 min-height hack*/
height: 10px;

load IE only CSS stylesheet

Monday, March 8th, 2010

<!–[if IE]><style type=”text/css”>@import “css/ie_overide.css”;</style> <![endif]–>