English 中文(简体)
PHP Guru, about script timeout
原标题:PHP Guru about script timeouts
  • 时间:2011-04-14 03:28:56
  •  标签:
  • php
  • timeout

有时,我会随机抽出PHP执行时间。 是否有办法解决它来自何处的问题? 解答这一点的方法?

......

问题回答

如果你确信该守则的哪一部分时间要长,你就可以在法典的每一部分之前和之后打碎时间邮票,然后比较时间上的差别,并报告这些变化。 这将让你知道,你的法典中哪些是最长的。

如果你随机抽出时间,而且文字通常非常迅速地处理,那么我会猜测这两件事之一(我相信,“纽约”会比这多一些情景):

1) If you re connecting to an external source that isn t responding, that could cause a timeout 2) You have a dynamic piece of code that can process very little or a lot of information depending on the environment and user (for instance, you allow image uploads, or dynamic sql queries, etc)

如果你有可以描述局势的法典(甚至假守则),那么我们就能够更容易地看到可能存在问题的地方。





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签