Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Understanding: Sample Configuration For Filemaker Server?


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

Recommended Posts

Posted

I am working with the FMPHP_Sample.fmp12 database and php to understand how the API for PHP works. Mostly I have gotten things to work, but for a few errors I don't understand.

 

I have a different host for the php files then where the FM server is.

 

I placed the API Example php files on my host and included:

FileMaker.php and the FileMaker folder.

 

I can view the list in displayRecords.php and individual records inviewRecord.php

 

I get the following error when I try to create a new record or delete a record (the records are created and deleted):

 

Warning: Cannot modify header information - headers already sent by (output started at /home/smilep6/public_html/API/deleteRecord.php:5) in /home/smilep6/public_html/API/deleteRecord.php on line 48

 

I do not know why I am getting this. All I have changed in the php files is this:

$fm = new FileMaker('FMPHP_Sample', 'http://domain');

 

Thanks in Advance - Sam

Posted

That is nothing to do with the API - that is a PHP error from sending something before the php itself is executed, usually having whitespace or some HTML before the php.

 

eg

 

<html>
<head>
<?php some php; ?>

 

The very very first thing on the code page should be your opening block of PHP code

This topic is 3559 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
×
×
  • Create New...

Important Information

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