[FX.php List] Using an image in a container

Andy Gaunt andy at fmpug.com
Thu Apr 20 12:45:53 MDT 2006


Hi Laura,

 

Try the following

 

$ clientLogo
="FX/image_proxy.php?FXimage=".vignereEncryptURL($logoData['YOURCONTAINERFIE
LD'][0]);

 

 

You need to tell it your container image field, not the result of the FX
query

Andy Gaunt
T: 407.810.4722
andy at fmpug.com
http://www.fmpug.com <http://www.fmpug.com/>     

Recipient of FileMaker's 2005 "Mad Dog" Public Relations Award

For chapter locations, dates & times please visit the website at
http://www.fmpug.com <http://www.fmpug.com/>  If you can make it to a
meeting, please RSVP at http://www.fmpug.com/rsvp.php

  _____  

From: fx.php_list-bounces at mail.iviking.org
[mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Laura Long
Sent: Thursday, April 20, 2006 2:39 PM
To: 'FX.php Discussion List'
Subject: [FX.php List] Using an image in a container

 

I ran the "echo_new_key.php" file in the fx folder and got my encrypted key.
I copied and pasted that into the image_proxy.php file.

 

In my actual php page I have the following code:

 

<?php
require_once('FX/image_proxy.php');
include_once('FX/FX.php');
include_once('FX/server_data.php');
include_once('FX/FMErrors.php');

 

$logo=new FX($serverIP,$webCompanionPort,'FMPro7');
$logo->SetDBData('myDatabase.fp7',myLayout);
$logo->SetDBPassword('password','myPassword');
$logo->AddDBParam('idCompany',$_SESSION['idCompany']);
$logoResult=$logo->FMFind();

 

foreach($logoResult['data'] as $key=>$logoData){

 

$clientLogo="fx/image_proxy.php?FXuser={$FXE_username}&FXpass={$FXE_password
}&FXimage=" . vignereEncryptURL($logoResult);


echo "<img src=\"" . $clientLogo."\">";

 

echo $logo;

 

 } 

 

?>

 

The graphic comes up as a red X (no image found), and the view source gives
me the following:

 

 <p align="center"><img
src="fx/image_proxy.php?FXuser=&FXpass=&FXimage=%CC%FB%27%F5%9E">Object id
#2</p>

 

I put the echo $logo; statement in just to see what it would print, that is
where the Object id#2 is coming from.  Anyway, my question is, does anyone
know if I missed something?  I did not set a value to FXuser or FXpass, do I
need to, and if so, what would go there?  

 

Any insight or help to get my images in the container field to render would
be much appreciated - oh, and just to avoid the obvious, I would prefer to
not use a path to the image in this case, I would like to have the image
render directly from the container field - thanks again  :)

 

 

Laura Long
Database/Web Designer
Workplace Options, Inc.
(919) 834-6506
 <http://www.workplaceoptions.com/> http://www.workplaceoptions.com

-----Original Message-----
From: fx.php_list-bounces at mail.iviking.org
[mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of
gerry.charest at agfa.com
Sent: Thursday, April 20, 2006 1:36 PM
To: 'FX.php Discussion List'
Subject: [FX.php List] FX Query related Value

Is it possible to use a related field in a query? If so what is the proper
syntax for the related field?

Gerry Charest
Agfa Corporation

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060420/8f19ba84/attachment.html


More information about the FX.php_List mailing list