I have my filemaker solution hosting in a filemaker server. I want to use a php script to fetch some data from my database and then create some records.
How can I connect a php file with the filemaker solution hosted in filemaker server?
I always thought this was a great free tutorial. I learned a lot from it when I started.
FileMaker API for PHP Tutorial
Thank you Jaymo. Looks like what I need.
from where can i get that Filemake.php file. While googling I found that these files is in some folder of Filemaker server installation.
I use hosted Filemaker server so I don't have access to those files.
This is a couple versions back but will still do the job:
You'll see mention of the filemaker.php file in the PDF.
You don't actually need the PHP files if you have access to FMS and PHP. You just have to point your PHP files to the correct location. Check with your hosting provider to get that path. The CWP guide does tell you what to set up. You just need to know where.
You might look for other tutorials and example files for PHP to help you learn the correct commands. But you don't actually need the PHP API files (as they would be on the server).
If the FMS host is not the same as the web host ask your provider to supply a copy. If the FMS host provides the web hosting then, as beverly says, you only need to know the path.
I wouldn't recommend doing that. You'll lose any changes that may have been made to the code between versions. The FMS host can supply the API that matches their server.
Jaymo pointed to the FMS13 CWP guide. I don't think there would be much difference. The versions of installed PHP and the FM API for PHP may have slight differences, possibly.
There are CWP guides for all versions:
Prior to FMS15:
It's probably best to choose the guide that is for the Installed FMS that the host is providing.
Lynda.com has a good tutorial:
There is a lot out there to help get started. Previous versions may have some great books that still apply to current versions. Just be aware that some things may have changed (PHP changes versions, for example!)
I have asked my filemaker server hosting provider for the files. I hope that will help.
"the files" are the set of PHP functions & classes that are called when you ask to do something with your PHP and access FMS (for read or write).
If they are sending you "FM_API_for_PHP_Standalone.zip", these are only helpful IF you have PHP on a local web server and you will be testing your PHP before deploying to the hosting service. You will not be changing the API files in any way! The CWP guide will tell you where to place the (unzipped) files on your web server.
You still need to learn what commands to use (calling the API functions) and the guides and other tutorials are going to help the best for that.
Another article that may help:
Retrieving data ...