February 20, 201510 yr 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
February 23, 201510 yr 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
Create an account or sign in to comment