Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

FX.php not displaying images

Featured Replies

I have downloaded the FX.php folder and the database works fine with the text fields. My problem however involves displaying images. They do not show up in the examples provided with FX.php. I've looked at the source code briefly and have also viewed the source of the resulting webpage.

PHP source for the image tag

<img src="image_proxy.php?FXimage=<?php echo vignereEncryptURL($BookData['data'][$currentKey]['cover_art'][0]); ?>">

HTML source for the image tag

<img src="image_proxy.php?FXimage=%89%C7%FF%94%E7%A8OBF%5D%A5N%F0%D1%C2%80%DF%92%FB%5B%7D%86%BCr3%7BM%E8Z%7E%80S%88%C9H%3F%9C%7DY3%7B%7F%832M%B5%27%8A">

I am currently testing this solution on my mac using localhost (FM6, OS x 10.2.8) The rest of the database works great. The images just don't show up.

any thoughts?

  • Author

well I'm unsure why but I created a new FM database, added a container field, added an image to the field and reconfigured the PHP file and the images showed up. I still can't get their example database to show images however.

hmmm

:confused:

  • 1 month later...

If you find out more information on this please let us know.

Is there a simpler way to display images from a container field in PHP?

Are you "including" the image_proxy.php file, e.g.:

include_once($_SERVER['DOCUMENT_ROOT'] . "/FX/image_proxy.php");

You may be able to check any problems by using your system Console to list the httpd errors log.

Good Luck.

Garry

I found the answer... not very clear - but read the comments in the 'image_proxy.php' file and it says you should access 'echo_new_key.php' once to get a new security key to encrypt the images.

I did this - pasted it into the 'image_proxy.php' file and like magic the images from the example showed up.

My head still hurts from banging it against the wall for a few days - but the lesson is 'read the notes'.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.