[FX.php List] FMSA & container fields
Steve Winter
steve at bluecrocodile.co.nz
Sun Jun 25 05:47:30 MDT 2006
Hi Kevin,
First off I need to say that no I have never tried to do this, but as I
understand it, that's what image_proxy.php which comes in the latest
versions of FX.php is for...
In the sample file detail.php one can find;
include_once($_SERVER['DOCUMENT_ROOT'] . "/FX/image_proxy.php");
// This file allows proxying of images from a FileMaker DB
// allowing you to keep your DB behind the firewall.
$BookQuery = new FX($serverIP, $webCompanionPort, $dataSourceType);
$BookQuery->SetDBData($bookListFile, "Detail_View");
$BookQuery->SetDBUserPass ($webUN, $webPW);
$BookQuery->AddDBParam('-recid', $_GET['ID']);
$query = $_GET['query'];
$BookData = $BookQuery->FMFind();
$currentKey = key($BookData['data']);
Then later;
<img src="image_proxy.php?FXimage=<?php echo
vignereEncryptURL($BookData['data'][$currentKey]['cover_art'][0]); ?>">
Hopefully this will help...
Best of luck..
Steve
-----Original Message-----
From: fx.php_list-bounces at mail.iviking.org
[mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Kevin Futter
Sent: Friday, 23 June 2006 3:31 p.m.
To: FX.php Discussion List
Subject: [FX.php List] FMSA & container fields
Hi all,
We are in the preparatory phase of an impending migration to FM 8 (from 5.5
Server / v6 clients). During testing so far I haven't been able to coax the
WPE to provide me with any images stored in a container field. Perusing
print_r($ReturnedData) tells me that a reference for the container field is
being returned, looking something like this:
/fmi/xml/cnt/data.jpg?-db=testdb.fp7&-lay=Admin&-recid=1&-field=image(1)
And when I populate the HTML img source attribute with
$ReturnedData['data'][$key]['image'][0], it does indeed print the above
reference into the source code. However, I'm still getting no images
displayed. When I try requesting an image from the db directly via the link
[http://serverIP/fmi/xml/cnt/data.jpg?-db=testdb.fp7&-lay=Admin&-recid=1&-fi
eld=image(1)], the fmi cgi engine returns a 404, saying it can't find file
/fmi/xml/cnt/data.jpg.
Needless to say, I'm getting increasingly frustrated with no signs of a
resolution. Has anyone else managed to use FX with FM8 to display images on
a web page? (Just to clarify, the images are stored in the database, not
just a reference to them.)
Thanks,
Kevin
--
Kevin Futter
Webmaster, St. Bernard's College
http://www.sbc.melb.catholic.edu.au/
------------------------------------------
This e-mail and any attachments may be confidential. You must not disclose
or use the information in this e-mail if you are not the intended recipient.
If you have received this e-mail in error, please notify us immediately and
delete the e-mail and all copies. The College does not guarantee that this
e-mail is virus or error free. The attached files are provided and may only
be used on the basis that the user assumes all responsibility for any loss,
damage or consequence resulting directly or indirectly from the use of the
attached files, whether caused by the negligence of the sender or not. The
content and opinions in this e-mail are not necessarily those of the
College.
_______________________________________________
FX.php_List mailing list
FX.php_List at mail.iviking.org
http://www.iviking.org/mailman/listinfo/fx.php_list
More information about the FX.php_List
mailing list