有时我的服务器在通话box = [1, 2, 3, 4, 5]
for i in box: #it will go through all elements in the list
print i, "this is the first loop" #for each different 'i' in box
for x in box: #it will go through all elements in the list
print x, "this is the second loop" #you will get all elements from the box
print (i,x) #this is what you get
后冻结,只有重新启动它才能解冻它。
这是因为PHP的function recursefolders(v){
var f = new Folder(v);
while (!f.end) {
if (f.filetype == "fold") {
var foldername;
foldername = f.pathname + f.filename
recursefolders(foldername);
alert('This is the original variable' + v);
}
f.next();
}
f.close();
}
忽略了执行时间限制以及使用flock()
时的一些错误。
问题:如何设置flock()
的时间限制?
这必须在没有LOCK_UN
的情况下工作,因为如果我使用它,我会得到并行脚本的错误(队列序列被破坏)。