[FX.php List] Script executes, but hangs web page

Andrew Denman adenman at tmea.org
Mon Nov 1 16:58:29 MDT 2010


Shooting in the dark here as I've only run scripts online to add records: Could FileMaker be hanging because it expects to return records, but after the script there are no records? What happens if you do a 'show all' at the end of the script, or otherwise find a record to return?

Andrew Denman

From: fx.php_list-bounces at mail.iviking.org [mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Tim 'Webko' Booth
Sent: Monday, November 01, 2010 5:52 PM
To: FX.php Discussion List
Subject: Re: [FX.php List] Script executes, but hangs web page

Dear Joel,

Is that really true that one WebUser session can step on another WebUser session??  That sounds awfully dangerous...

(Current versions of FMS?)

Theoretically yes, if you rely on something staying the same between requests.

In practice, not really - everything is done and dusted in one hit - the find is done and sent back, then the next request is handled as a brand new login and request, and then the next... It's why globals generally don't work properly, as they get reset to default for every request.

In this case, I suspect a time out issue but a simple delete script on not many records shouldn't cause that.

But a find, then followed by a separate script call might allow that to happen, as that would be two different requests.

I'd need a copy of the database and the php to work it out any further than that though


-Joel


On Nov 1, 2010, at 3:28 PM, Tim 'Webko' Booth wrote:


I would be especially careful of Scripts if you could have more than one web user, as you cannot tell what the 'Found Set' may be - it is possible for WebUser1 to run the find, WebUser2 to also run a find, and then have the script triggered by WebUser1, which may have unintended consequences...

_______________________________________________
FX.php_List mailing list
FX.php_List at mail.iviking.org<mailto:FX.php_List at mail.iviking.org>
http://www.iviking.org/mailman/listinfo/fx.php_list

Tim 'Webko' Booth :: Niche IT Pty Ltd, Sydney, Australia
[e] tim at nicheit.com.au<mailto:tim at nicheit.com.au> :: [m] 0418 993 306



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


More information about the FX.php_List mailing list