Jump 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.

Featured Replies

For brevity's sake I will write what is working and what is not:

File is hosted locally

Working:

Viewing db from my localhost (http://localhost/~User/Database).

FM_API_for_PHP_Standalone is NOT in the db folder.

Not Working:

1. Viewing db from MAMP, regardless if FM_API_for_PHP_Standalone is in the db folder or not.

2. Viewing db from my web server (shared hosting). FM_API_for_PHP_Standalone is in the db folder.

File is hosted remotely

Not Working:

1. Viewing db from my localhost, regardless if FM_API_for_PHP_Standalone is in the db folder or not.

2. Viewing db from MAMP, regardless if FM_API_for_PHP_Standalone is in the db folder or not.

3. Viewing db from my web server (http://www.mysite.com/Database). FM_API_for_PHP_Standalone is in the db folder.

I have included a text file with the various PHP error messages.

It seems to me that this is an issue with my placement of FM_API_for_PHP_Standalone, for when I host the db on a local server and use my localhost as a web server, then FMP can find the PHP files in my Library/FileMaker Server/Web Publishing directory. I thought I just needed to place the FM_API_for_PHP_Standalone in with the .php files, but that does not seem to work.

By the way, the web files were created with the PHP Site Assistant.

Can anyone shed any light on why this is not working properly? I would like to use the db that is hosted remotely and serve it on a shared hosting web server.

Thanks.

FMP_PHP_errors.txt

  • Author

I've discovered several things. Succinctly:

1. In the file FM_API_for_PHP_Standalone, remove the folder "FileMaker" and the document "FileMaker.php" and put these two items in the root directory. For example, say I have a Widgets database called "Widgets" and I create files using PHP Site Assistant. I put all of those files in a folder called "Widgets" and I put that folder in MAMP (or WAMP or, eventually, a live hosting environment). Then, place the two items - "FileMaker" (the folder) and "FileMaker.php" (the document) - in the "Widgets" folder.

2. Many of the files created by PHP Site Assistant begin with HTML ("DOCTYPE HTML PUBLIC..."). This causes an output buffering error. (see http://fmwebschool.com/frm/index.php?topic=2697.0)

Either move that HTML line below the php code OR incorporate output buffering functions (ob_start() and ob_end_flush()/ ob_end_clean() ).

3. After I did numbers one and two above I received a new error - "Warning: require_once(Date.php)". I am not sure where this file is or where it is supposed to be. I simply commented it out (it is in the fmview.php file) and then everything worked properly.

Does anyone know where the Date.php file is or where it is supposed to be?

Thanks,

daniel

Create an account or sign in to comment

Important Information

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

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.