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.

PHP API Installation Issue

Featured Replies

  • Newbies

Good afternoon,

We have a FM 11 server which is running on OS 10.6.6 (non server edition).. The PHP test page works fine from within the admin console, however we are trying to test the connection from another machine also running 10.6.6 with PHP running independantly with no success. The PHP install is running XAMPP on our test rig, we have followed the FM documentation to the letter for manual installation of the API but when we use the FM class in a PHP script we are getting the following error..

Fatal error: Class 'FileMaker' not found in /Applications/XAMPP/xamppfiles/htdocs/ddf/fm.php on line 2

This leads us to believe that the installation has somehow gone pear shaped and would be most appreciative of some expert advice...! We have tried the obvious, both Apache and machine restarts, but still with no joy. I have attached two screenshots to show where we have copied the required file and folder contained in the zip file.

Kind regards,

Joe

Screen shot 2011-02-07 at 10.13.17.png

Screen shot 2011-02-07 at 10.12.17.png

Save this line of code to a php file, put it in your web server's puplic html files, then access it via a browser (http://localhost/info.php).

<?php phpinfo() ?>

This will give you information on your PHP configuration. Search this page for "include_path". The FileMaker PHP API must be in one of the include paths. Alternatively, you can add additional include paths in the php.ini file.

  • Author
  • Newbies

HI dansmith65, many thanks for your suggestion..

The php info gives the include_path as applications/xampp/xamppfiles/lib/php which as you can see in my second screenshot is where we have placed the files...

Any other suggestions would be most welcome..

Many thanks

Joe

In your ddf/fm.php file, have you included FileMaker.php? If not, use this line before you try to create an instance of it.

require_once 'FileMaker.php';

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.