Jump to content
Server Maintenance This Week. ×

adding a container image to the web page


This topic is 2183 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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 by Aussie John
Link to comment
Share on other sites

Also it seems I needed to add 

echo '<img src="'. $Address . $Image .'">';

 

Page is requesting a password and user name.

 

Edited by Aussie John
Link to comment
Share on other sites

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))

Link to comment
Share on other sites

This topic is 2183 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.