Jump to content

PHP Warning while using smart pill plugin


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

Recommended Posts

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

Link to comment
Share on other sites

This topic is 4674 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.