[FX.php List] How to use SetFMGlobal

Bob Patin bob at patin.com
Tue May 10 09:06:32 MDT 2011


Well said, Dave! :)

Here's another way to achieve the same thing:

Instead of setting the global, then triggering the script, set the global IN your script before you do whatever other query you may need to perform in your script.

I'm sure the global won't persist any longer than setting it using the FX function, but at least you'll know that every time you trigger the script, you've also set the global.

I rarely use scripts when doing web apps, unless there is absolutely no other way; instead, I write whatever functions I might need using a combination of PHP functions and FX.php; there are some excellent PHP functions available that will do almost anything you can imagine. The source for these is, as in all things PHP, http://www.php.net. 


Bob Patin
Longterm Solutions
bob at longtermsolutions.com
615-333-6858
http://www.longtermsolutions.com
iChat: bobpatin
FileMaker 9, 10 & 11 Certified Developer
Member of FileMaker Business Alliance and FileMaker TechNet
--
Expert FileMaker Consulting 
FileMaker Hosting for all versions of FileMaker
PHP • Full email services • Free DNS hosting • Colocation • Consulting:


On May 10, 2011, at 9:54 AM, Ness, David wrote:

> Globals are unique to the user, and each call to fx.php is a unique user incident, so you must reset globals on each fx ‘transaction’.
>  
> (I think this is right unless I’m wrong.)
>  
>  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20110510/258c1833/attachment.html


More information about the FX.php_List mailing list