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

Leo R. Lundgren leo at finalresort.org
Sat Oct 30 03:29:47 MDT 2010


Could it be a timeout in PHP? You don't mention how long it takes before you get the blank page in the browser.

Try to establish whether it takes the same amount of time before it blanks out, each time you try it. If so, it might be that the PHP script takes too long, so the PHP engine shuts it down to prevent stale scripts.

There's a setting for this in PHP's configuration called max_execution_time. You can also set it in the script itself using set_time_limit() (see php.net/set_time_limit). I believe the default is 30 seconds.


30 okt 2010 kl. 01.32 skrev Bradley Creamer:

> Hi FX folks,
> 
> I have a script that deletes a found set of records. I've found the script executes fine from a Web page call, but the resulting Web page hangs, in other words, after many seconds, a blank page is returned. 
> 
> Having converted the database from FMP6 to FMP11/FMPSA11, I've updated the script to have the "Confirm" statement and I even added the "Exit Script" directive after that; still it hangs. 
> 
> But, again, the script does execute in the background, deleting all found records, so I'm pretty sure I have the permissions set correctly. However, I set a global field to capture script results (as stated in the "Exit Script" directive) but nothing is captured.
> 
> So, it's deleting the found records, not returning the result, and hangs the Web page. 
> 
> Any thoughts? Below is the script in it's entirety.
> 
> Thanks for any and all help,
> Bradley
> 
> **************** Script:
> 
> Delete All Records [No dialog]
> Commit Records/Requests [Skip data entry validation; no dialog]
> Exit Script [Result: "All Deleted"]
> 
> 
> 
> 
> 
> 
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list



-|

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


More information about the FX.php_List mailing list