[FX.php List] Viewing Container Contents

Steve Hannah shannah at sfu.ca
Wed Jan 4 14:35:20 MST 2006


As far as I recall, Container contents are returned in the form of a  
path to retrieve the Binary contents from the Filemaker web companion.
For example ...
<?
// Note that FileMaker Unlimited is serving files on http:// 
www.educ.sfu.ca port 591

if ($value['hasPhoto'][0]==1) {
                 $photoSrc ="http://www.educ.sfu.ca:591/".$value 
['Photo'][0];
         } else {
                 $photoSrc="http://www.ierg.net/assets/images/people/ 
no_pic.gif";
         }
}
?>
<img src="<?=$photoSrc?>"/> <!-- displays the image -->
<a href="<?=$photoSrc?>">Link to image</a> <!-- link to the image ...  
if the contents of the container field were a pdf, then it would link  
to the pdf . -->


Hope this helps a bit.

-Steve


On 4-Jan-06, at 1:23 PM, R. Kirk Maxey wrote:

> How do you view the contents of a container, such as PDFs?  
> Requiring the
> image_proxy.php file allows me to view pictures that have been  
> inserted into
> the container, but I can't get any other file type to display.
>
> Thanks,
> Kirk Maxey
>
>
>
> _______________________________________________
> 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