Newbies DelGreco007 Posted August 12, 2004 Newbies Posted August 12, 2004 I have a made a FileMaker Pro 6 database web accessible via PHP using the FX.php class. I also created a password allowing only browse records priviliges for the FX class. FX passes this password to the database as expected; however, I also have container fields with images that I want to be displayed as follows: <img src="http://$serverIP:591/FMPro?-db=database.fp5&-RecID=1&ContainerField=&-img"> At this point an authentication dialog box pops up requesting the same password to be entered by the user. How can I pass the password to Filemaker and prevent the authentication dialog box from popping up?
Garry Claridge Posted August 12, 2004 Posted August 12, 2004 Try this: <img src="http://myusername:mypassword@$serverIP:591/FMPro?-db=database.fp5&-RecID=1&ContainerField=&-img"> Good Luck. Garry
Newbies DelGreco007 Posted August 13, 2004 Author Newbies Posted August 13, 2004 Thanks for the help. Unfortunately, I just learned that Microsoft has released a "security update" which disables the use of username:password@host in http urls in MSIE. It's possible to reverse this change, but since it's now the default value... Any other ideas? Thanks, Phillip Dean
Garry Claridge Posted August 13, 2004 Posted August 13, 2004 Try this: Create a php script called "theimage.php": <?php header("Content-type: image/jpeg"); $img = imagecreatefromjpeg("http://myusername:mypassword@$serverIP:591/FMPro?-db=database.fp5&-RecID=1&ContainerField=&-img"); imagejpeg($img); imagedestroy($img); ?> Then in the main php script have this line: <img src="theimage.php"> Good Luck. Garry
Recommended Posts
This topic is 7483 days old. Please don't post here. Open a new topic instead.
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