[FX.php List] FMSA & container fields

Stephen Knight stephen at fmwebschool.com
Mon Jun 26 07:32:41 MDT 2006


Hi Kevin,


The initial post mentioned a 404 error when using the link to the image. If
the question is still relevant then the link you used should be working.
Double check the ports and use the real WPE url for the IP. If a username /
password is needed for the database then the url should be in the following
format:
http://User:Pass@serverIP:port/fmi/xml/cnt/data.jpg?-db=testdb.fp7&-lay=Admi
n&-recid=1&-field=image(1)
The port is usually 80 and can be omitted.

Best Regards,
Stephen Knight


In Kindness
Stephen K Knight
http://www.fmwebschool.com
800.353.7950 / 386.453.5843
FMWebschool, we bring the web to life 
FX.PHP PHP XML MySQL CDML ASP
-----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: Sunday, June 25, 2006 7:51 PM
To: FX.php Discussion List
Subject: Re: [FX.php List] FMSA & container fields

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.


_______________________________________________
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