Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

PHP Warning while using smart pill plugin

Featured Replies

Hello All...

How are you all. Just was not able to be in contact with you since long. But cant be away from you as Filemaker is only the bread and butter for me...!!! Hope you are doing great...

I am just stuck at some place.

We are using Smart Pill plugin from http://www.scodigo.com/products/smartpill-php/

This plugin is very usefull in executing the PHP codes straightaway form the filemaker (Acting as a web server for your application)

Attached are files.

ExampleCallingPHP.php is the file whose code I need to run through the filemaker smart pill plugin

When I am trying to run the following code through filemaker smart pill plugin

"include_once(\"utility.php\");" & ¶ &

"$Result=GetResellerList(\"https://10.0.0.59:3030\", \"admin\", \"admin\", 0,100);"

The Plugin is giving me the following Warning:

PHP Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent in C:\Program Files\FileMaker\FileMaker Pro 11 Advanced\Extensions\PHP Support\includes\utility.php on line 126

PHP Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent in C:\Program Files\FileMaker\FileMaker Pro 11 Advanced\Extensions\PHP Support\includes\utility.php on line 126

PHP Notice: Undefined variable: tagValue in C:\Program Files\FileMaker\FileMaker Pro 11 Advanced\Extensions\PHP Support\includes\utility.php on line 104

This warning is related to the session start function provided in the utility (include) file.

The utility.php file (un-modifiable) has a session invoking call. I am having a strong feeling that, double session is getting created. 1st one is from utility file and the 2nd one from the PHP plugin (by default). Even the Warning describes the same issue.

The strange thing is that when I tried runing the “ExampleCallingPHP.php” along with the include file “utility.php” on Web browser using web server, then it worked perfectly well.\

I am just struggling to make this code work to remove this warning.

I also visiting following links but that could not help me as my triggering for the code is filemaker and not the web server so these links didnt helped me but might give you some more details

http://www.phpbuilder.com/board/showthread.php?t=10363408

http://www.phpbuilder.com/board/showthread.php?t=10310794

Any help would be highly appreciated.

ExampleCallingPHP.php

utility.php

readMe.txt

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.