Aussie John Posted May 4, 2018 Posted May 4, 2018 (edited) 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, 2018 by Aussie John
Aussie John Posted May 4, 2018 Author Posted May 4, 2018 (edited) Also it seems I needed to add echo '<img src="'. $Address . $Image .'">'; Page is requesting a password and user name. Edited May 4, 2018 by Aussie John
IdealData Posted May 4, 2018 Posted May 4, 2018 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))
Aussie John Posted May 6, 2018 Author Posted May 6, 2018 Thanks Ideal Data - adding the guest to fmxml did the trick
Recommended Posts
This topic is 2752 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 accountSign in
Already have an account? Sign in here.
Sign In Now