[FX.php List] Displaying images

Kevin Futter kfutter at sbc.vic.edu.au
Tue Nov 4 14:35:45 MST 2008


On 4/11/08 9:17 AM, "Tim 'Webko' Booth" <tim at nicheit.com.au> wrote:

> 
> 
>> 
>> On Nov 1, 2008, at 5:01 AM, Thomas Neumann wrote:
>> 
>>> Hi All,
>>>  
>>> I'm facing the following problem
>>>  
>>> I try to display images from a database in a webpage using FX.
>>> When I just use img src= \" $data["picture] \" then it works (after a
>>> request for the password) on my development pc, where FMServer and the
>>> webserver run on the same machine. But when I put it on the server
>>> (filemakerserver and webserver on different machines) then it does not work
>>> (it even did not ask for the password).
>>> I tried the image_prox.php from the FX demo, but could not get it working in
>>> any configuration.
>>>  
>>> Any hints or clues?
>> Thomas,
>> 
>> At first glance I'm wondering about the way you've got your URL constructed;
>> when I display images on the web, I prefer to mix my PHP rather than writing
>> all the HTML inside PHP, but that's just me; here's how my code would look:
>> [... snip ..]
>> 
> I suspect that Tom has the pictures in a container field inside the database
> rather than at a known web location.
> 
> The issue here is that the request for the picture in the container field has
> to go to the FileMaker Server, not the webserver - this is not too hard to
> organise where they operate from the same IP address, but is difficult when
> the webserver and FM are different boxes.
> 
> Off the top of my head, I seem to remember reading something about how to deal
> with this issue, but can't find it offhand.
> 
> Cheers
> 
> Webko


We have this working, but it is indeed a PITA. For fun, we decided to
complicate it more by passing the image data through some GD functions as
well. For that reason, the code I developed to make all this work isn't at
all typical for the problem, so wouldn't really help here. But it can be
done!

-- 
Kevin Futter
Webmaster, St. Bernard's College
http://www.sbc.melb.catholic.edu.au/


#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#####################################################################################

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