August 12, 200421 yr Newbies 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?
August 12, 200421 yr Try this: <img src="http://myusername:mypassword@$serverIP:591/FMPro?-db=database.fp5&-RecID=1&ContainerField=&-img"> Good Luck. Garry
August 13, 200421 yr Author Newbies 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
August 13, 200421 yr 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
Create an account or sign in to comment