Jump to content

This topic is 7483 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

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?

  • Newbies
Posted

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

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.