[FX.php List] Using global variables when calling a FileMaker
chris at iViking.org
Wed Feb 29 23:06:36 MST 2012
Sorry, I was talking about global fields. It's been a long day. Everything I said before, goes; but it applies to global fields. How do you go about initially setting the global fields when you run the script via FX?
On Feb 29, 2012, at 9:38 PM, John Funk wrote:
> Thanks Chris,
> Good to know about the session variables but what I am trying to figure out
> is the behavior of global FIELDS while running a FileMaker script from
> PHP/FX. My FM script has multiple sub scripts that use common global fields.
> Running these from a FM Client and as a server script works but not when
> executed from PHP/FX.
> On 2/29/12 10:13 PM, "Chris Hansen" <chris at iViking.org> wrote:
>> Look at it this way: a connection via PHP is like connecting to FileMaker
>> Server, performing a query, and then logging out again. Based on that, keep
>> in mind that global variables only persist until you log off. So, you can use
>> globals, as long as you set them as part of the query, and don't expect them
>> to persist to subsequent queries (use $_SESSION variables for that.) Oh, and
>> to set globals via FX.php use FX's SetFMGlobal() method. HTH
>> On Feb 28, 2012, at 4:09 PM, John Funk wrote:
>>> Can someone tell me if FX/FMServer Advance deals with script globals
>>> differently than a FielMaker Client or as a Server script?
>>> I have a very complicated FM script that parses data to make “Jobs”. It runs
>>> great as a Server script and as an FM Client script but will not run or is a
>>> runnaway when called through FX. I am guessing the globals variables are not
>>> being used.
>>> I may have to rewrite the script to use $$ variables, but not sure.
>>> As usual, any help is appreciated.
>>> John Funk
>>> FX.php_List mailing list
>>> FX.php_List at mail.iviking.org
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
More information about the FX.php_List