![]() A server provided by a web hosting company where you can upload files.FileMaker Server with Web Publishing enabled.Some options you may want to consider are: ![]() You can use any web server with PHP installed to run your code. Because of this difference we need to run the code on a web server and can’t just double-click the file to see our work. PHP is different from HTML in that it is code that needs to be executed, rather than just markup that gets read by your browser and displayed as a webpage. html file, and then open it in a web browser and see the result. With HTML you’re able to write some code in a text file, save is as an. Be sure to include any fields you want to get or set the values of on your layout. If you don’t have the field on the layout you won’t be able to get data from it in your PHP code. IMPORTANT: Only fields placed on the layout can be accessed through the PHP API. Create some records and set some values in the name and color fields for testing your work. Also create layout called “PHP Test” with these fields on the layout. This dot indicates that at least one privilege set for the database has the fmphp extended privilege set enabled and that we’re ready to connect to it using PHP.Ĭreate a table called “People” in this new database with _kp_ID (primary key), Name, and Favorite Color fields. Check the activity tab and you will see a dot in under the PHP column for your database if you have correctly followed the previous. Press OK and close the Manage Security window to save your changes.Īfter making this change you should be able to see that PHP access is enabled for your database from the FileMaker Server admin console. Click Edit and enable the Access via PHP Web Publishing extended privilege set by clicking the checkbox next to it. Go to the privilege sets tab of the Manage Security window and select the privilege set assigned to your newly created user. For this example I’m going to create a user named “PHP User” which will be used only for accessing the database through CWP and give this user the privilege set. Open the Manage Security dialog and create a user to be used for accessing the database through CWP. I’m going to name my database “Test Database” for this example. Create a new database and upload it to your FileMaker Server. In addition to configuring the FileMaker Server for CWP we also need to make sure that our FileMaker Database is ready for access through CWP. With the server properly configured for CWP we’re ready to move on to the FileMaker database Configure the FileMaker Database This will enable your PHP application to connect and communicate with FileMaker Server. Select the PHP tab and check the “Enable PHP Publishing” checkbox. Look for the green checkmark circle which will indicate if the WPE is successfully running.įrom there, select “Web Publishing” from the menu on the left. Click the slider button to the right of the Web Publishing Engine to enable it. Scroll down on the Status page and look for the Web Publishing engine option. To do this, you’ll need to log in to your FileMaker Server admin console.įirst, make sure that the Web Publishing Engine is enabled. The first step to getting started with CWP is to make sure your FileMaker Server is properly configured.
0 Comments
Leave a Reply. |