AnsweredAssumed Answered

Cannot get FileMaker PHP API correctly configured

Question asked by markjulie on Aug 22, 2013
Latest reply on Aug 31, 2013 by steve.winter

FMSA 12.0.4.405 is installed on OS X Mountain Lion Server on a MacPro with 10.8.4. IWP, PHP, and ODBC are enabled. I can get to the Test Page for PHP which displays its data. I deployed using the FileMaker-supported version of php. I also verified with Apple that php is correctly setup on OS X Server.

 

After watching Lance Hallberg's "FileMaker and PHP Foundations Course" on vtc.com, I have tried to set the php api permissions correctly and moved the standalone folder from HD/Library/FileMaker Server/Web Publishing to HD/Library/WebServer/Documents. When I send the code:

 

<?php

ini_set('display_errors',1);

require_once('../../FM_API_for_PHP_Standalone/FileMaker.php');

?>

 

I get an error:

PHP Warning: require_once(../../FM_API_for_PHP_Standalone/FileMaker.php): failed to open stream: No such file or directory in - on line 5 PHP Fatal error: require_once(): Failed opening required '../../FM_API_for_PHP_Standalone/FileMaker.php' (include_path='.:') in - on line 5

HD/Library/WebServer/Documents/04/0405/0405.php is the path of the php code.

 

I'm sure there is something simple I missed.


Outcomes