Jump to content

Recommended Posts

Posted

Title pretty much explains it all, issue persists in FireFox 5.0.1 on the Mac OS X (not lion the one before that). Works fine in Safari.

 

Is this a client side error, or do i need to get the developers of the website to fix something?

Posted

its an internal site developed for us by a third party, but a link that is failling on FF on MAC looks like this:

 

</pre><li>Yr 7 Visual Arts Assessment Schedule

 

not sure if thats any use?

Posted

the php page you are calling could use the header command to redirect the user to the pdf file

 

 header("location: http://[rest of path here]/5/58/Yr_7_Visual_Arts_Assessment_Schedule.pdf")

 

I think that syntax is right...

Posted (edited)

I should have explained a bit more...

 

in secure_image.php...

 

use $_GET to insert the file name into the header command...

 

this method is no good if the secure page writes output...in that case pass the filename onto a loader page that uses the location function.

Edited by CESIL
Posted

What images/files was the secure_image page designed to return?

 

I am guessing that the idea is that the link takes a user to a login page (or one that checks credentials) and then returns a file?

 

can you post the php code that gets returned by the link you posted?

Posted

May sound stupid, but are you sure it's not downloading the pdf, then just redirecting?

 

I know firefox on mac never used to be open to "open" pdf files without a plugin, so autodownloaded them to desktop (or w/e it's set). After it was downloaded it'd redirect to the download page, (or again "used to")

 

May sound stupid, but worth a check :p

 

Steve

Posted

what plugin would I need? Ill have a test when I get back to work on monday dont have anything mac with me here...

 

@CESIL its just meant to go to the pdf file, not sure what the secure thing is about unless its checking to see if user is logged on...

 

It might be downlaoding the pdf and naming it php i have no idea. Ill investigate more on monday, thanks

Posted
Make sure lib/utils has the right perms set on the web server - a web server will just serve a php file if you don't tell it to interpret it... often /cgi-bin/ is already set up to handle .cgi/.php et al, whereas other directories often aren't. With apache, either stick in a config for that directory, or sometimes you can get away with .htaccess
Posted
Make sure lib/utils has the right perms set on the web server - a web server will just serve a php file if you don't tell it to interpret it... often /cgi-bin/ is already set up to handle .cgi/.php et al, whereas other directories often aren't. With apache, either stick in a config for that directory, or sometimes you can get away with .htaccess

 

Surely it's already set though, as it's working in safari to quote Rabbie.

 

And rabbie, about the plugins there's a lot of them, but as I mentioned haven't used Macs in a while, so the basic firefox(mac) behaviour may have changed, but aye check your download folder, or desktop w/e just to see if it did download the file, when you got a minute :p Just worth checking!

 

Steve

  • Thanks 1
Posted
aye works fine with all other browsers on all other OS just ffox on mac thats the problem. Its starting to sound more likely what you have said so will check that first thing monday. Cheers

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...