[FX.php List] FMSA & container fields

Kevin Futter kfutter at sbc.melb.catholic.edu.au
Sun Jun 25 17:50:41 MDT 2006


On 25/6/06 9:47 PM, "Steve Winter" <steve at bluecrocodile.co.nz> wrote:

> 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

Thanks for your help guys. I've done some further testing and at this stage
it appears I'm dealing with a weird permissions issue at the layout level. I
tried grabbing the image from a different (pre-existing) layout, and that
was successful. The layout I was using before gave me everything but the
images. I'll have to conduct some more testing, as this is an existing db
that was developed in v6 and converted to v8. Given the authentication and
permissions model is very different in v8, I'm thinking something somewhere
is either corrupt or didn't translate across too well. I'll post back with
some more info when I have it.

-- 
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.




More information about the FX.php_List mailing list