RabbieBurns Posted July 29, 2011 Posted July 29, 2011 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?
RabbieBurns Posted July 29, 2011 Author Posted July 29, 2011 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?
CESIL Posted July 29, 2011 Posted July 29, 2011 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...
CESIL Posted July 29, 2011 Posted July 29, 2011 (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 July 29, 2011 by CESIL
RabbieBurns Posted July 29, 2011 Author Posted July 29, 2011 This is site developed and maintained by a 3rd party for us. Are there errors in that code we need to get them to fix?
CESIL Posted July 29, 2011 Posted July 29, 2011 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?
Steve21 Posted July 29, 2011 Posted July 29, 2011 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 Steve
RabbieBurns Posted July 29, 2011 Author Posted July 29, 2011 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
tom_newton Posted July 29, 2011 Posted July 29, 2011 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
Steve21 Posted July 29, 2011 Posted July 29, 2011 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 Just worth checking! Steve 1
RabbieBurns Posted July 29, 2011 Author Posted July 29, 2011 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
CESIL Posted July 31, 2011 Posted July 31, 2011 note to self...read all the post idiot! I just read the title and then jumped in...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now