Jump to content

Problem Accessing Images From FileMaker DB through PHP(FX.PHP)


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

Recommended Posts

Posted

Hi

I am facing problem when accessing image from FileMaker Database.

First of all my software specifications:

Filemaker Server Advanced 7 (FileMaker 8 DB Hosted)

PHP Version: 4.3.3

FX.PHP 4.0.0

windows 2003 sever

When i access the image for a search result listing.

It is showing the image of 1st record and reapeats the image

of first record for the rest of records.

I am using image_proxy.php for accessing image records.

The code is like below:

-----------------------------------------------------

<?php

include_once('fx/fx.php');

include_once('fx/image_proxy.php');

$fxob=new FX('192.168.10.8',80,'FMPro7','HTTP');

$fxob->setDBPassword('password','username');

$fxob->setDBData('DBName','Layout-web');

$dataArray=$fxob->FMFindAll();

foreach($dataArray[data] as $val){

$image=null;

$image="fx/image_proxy.php?

FXimage=".vignereEncryptURL($val['containerPicture'][0]);

echo '';

}

?>

-----------------------------------------------------

Please reply if u have any solution.

Also tell me if any other way available for accessing the image from DB.

Regards

Debabrata Pati.

  • 2 weeks later...
Posted

I'm sure you did this - but did you initialize a new 'key' for image_proxy.php

I was not able to get image proxy working perfectly in my PHP and FM 6 solution so I used an old work around - which will not work in FM 7 (I believe)???

cover

It is also been suggested to keep images separate from the FM database in a folder and access them that way.

In theory image_proxy is should work - but I am still waiting for someone to develop and easy function similar to the CDML way of getting images from container fields.

This topic is 7069 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.