Jump to content

PHP API Installation Issue


spaceair
 Share

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

Recommended Posts

  • 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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 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

Link to comment
Share on other sites

This topic is 4378 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
 Share

×
×
  • Create New...

Important Information

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