February 8, 201114 yr 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
February 8, 201114 yr 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.
February 9, 201114 yr 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
February 11, 201114 yr 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