May 4, 20187 yr Im sure im not the first person to ask this but here goes… How do I get an image to show on my webpage. My script successfully finds a record and displays the text from a number of fields. ( see arina.biz/search.php) I have added the following $address = 'https:fms.arina.biz:444'; $Image = $record->getField('Image'); echo $address . $Image; returns https://fms.arina.biz:444/fmi/xml/cnt/Monash-BLTB-300x200.jpg?-db=Projects&-lay=WebSearch&-recid=1462&-field=Image(1) This seems to the correct syntax based on the CWP manual. I believe it is a permission issue as I can click the link and using the PHP passwords see the image. How would I add the user name and password I should add the jpg is embedded Edited May 4, 20187 yr by Aussie John
May 4, 20187 yr Author Also it seems I needed to add echo '<img src="'. $Address . $Image .'">'; Page is requesting a password and user name. Edited May 4, 20187 yr by Aussie John
May 4, 20187 yr The PHP and XML access methods have independent extended privileges. Although you have authenticated your PHP session in your script this is not carried forward to the XML engine. Try setting the fmxml extended privilege to a "Guest" account. Support for the old http://username:password@address is almost non-existent. Did you also look at the php method getContainerData()? (NB. does not work for external storage))
Create an account or sign in to comment