RE: PHP issue with Firefox-45.7.0-1.el7_3.x86_64
Thanks David. That tidied it up nicely. -Original message- > From:David Sommerseth <sl+us...@lists.topphemmelig.net> > Sent: Friday 3rd February 2017 7:04 > To: Bill Maidment <b...@maidment.me> > Subject: Re: PHP issue with Firefox-45.7.0-1.el7_3.x86_64 > > You might need this line as well: > > header('Content-Disposition: inline; filename="the.pdf"'); > >
RE: PHP issue with Firefox-45.7.0-1.el7_3.x86_64 - Solved
How embarrassing! When checking the Application defaults for Firefox I failed to notice that there are TWO PDF entries: PDF Document -- which was set to Use (default) Portable Document Format (PDF) -- which was set to Save File Why are there two entries? Anyway it's all working now I have set the second entry to Use Document Viewer (default) -Original message- > From:Bill Maidment <b...@maidment.me> > Sent: Wednesday 1st February 2017 12:51 > To: Bill Maidment <b...@maidment.me>; SCIENTIFIC-LINUX-USERS@FNAL.GOV > <SCIENTIFIC-LINUX-USERS@fnal.gov> > Subject: RE: PHP issue with Firefox-45.7.0-1.el7_3.x86_64 > > Further information: > > The PHP script creates a PDF temporary file (which succeeds) and passes that > file to the browser to display it as follows. > > header('Content-Type: application/pdf'); > readfile($sTempFile); > > But all I get is a Save popup for the PHP script. > > > > -Original message- > > From:Bill Maidment <b...@maidment.me> > > Sent: Wednesday 1st February 2017 12:38 > > To: SCIENTIFIC-LINUX-USERS@FNAL.GOV <SCIENTIFIC-LINUX-USERS@fnal.gov> > > Subject: PHP issue with Firefox-45.7.0-1.el7_3.x86_64 > > > > Hi gang > > I am having trouble running an onclick PHP script on an internal web site > > using the latest Firefox browser. The site was running OK prior to > > upgrading to 7.3. > > I see lots of errors in the Browser Console like: > > NS_ERROR_FAILURE: Component returned failure code: 0x80004005 > > (NS_ERROR_FAILURE) [nsIURI.host] > > and pointing to contentPolicy.js line 182 (see attached image of that part > > of the js) > > > > Is this some new security check? Has anyone else seen something similar? > > > > Cheers > > Bill Maidment > >
RE: PHP issue with Firefox-45.7.0-1.el7_3.x86_64
Further information: The PHP script creates a PDF temporary file (which succeeds) and passes that file to the browser to display it as follows. header('Content-Type: application/pdf'); readfile($sTempFile); But all I get is a Save popup for the PHP script. -Original message- > From:Bill Maidment <b...@maidment.me> > Sent: Wednesday 1st February 2017 12:38 > To: SCIENTIFIC-LINUX-USERS@FNAL.GOV <SCIENTIFIC-LINUX-USERS@fnal.gov> > Subject: PHP issue with Firefox-45.7.0-1.el7_3.x86_64 > > Hi gang > I am having trouble running an onclick PHP script on an internal web site > using the latest Firefox browser. The site was running OK prior to upgrading > to 7.3. > I see lots of errors in the Browser Console like: > NS_ERROR_FAILURE: Component returned failure code: 0x80004005 > (NS_ERROR_FAILURE) [nsIURI.host] > and pointing to contentPolicy.js line 182 (see attached image of that part of > the js) > > Is this some new security check? Has anyone else seen something similar? > > Cheers > Bill Maidment
PHP issue with Firefox-45.7.0-1.el7_3.x86_64
Hi gang I am having trouble running an onclick PHP script on an internal web site using the latest Firefox browser. The site was running OK prior to upgrading to 7.3. I see lots of errors in the Browser Console like: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIURI.host] and pointing to contentPolicy.js line 182 (see attached image of that part of the js) Is this some new security check? Has anyone else seen something similar? Cheers Bill Maidment