You can not select more than 25 topics 
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long. 
		
		
		
		
		
			
	
	
		
			
	
		
			This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
		 
	
		
		
			
				
				
					
						
						
						
							---
 
						
						
						
							layout: post
 
						
						
						
							title: PHP异步执行的探索
 
						
						
						
							tags: [PHP, 异步]
 
						
						
						
							---
 
						
						
						
							
 
						
						
						
							  看来异步总是个难以解决的问题啊……<!--more-->     
 
						
						
						
							
 
						
						
						
							# 起因
  
						
						
						
							, , , , , , , , ,  
						
						
						
							
 
						
						
						
							# 探索异步的方法
  
						
						
						
							, , , , , ? , , ,  
						
						
						
							  我看完这些选择之后很不满意, , , , , , , ?  
						
						
						
							  后来我找到了一个很不错的函数,叫做[fastcgi_finish_request](https://www.php.net/manual/zh/function.fastcgi-finish-request.php), , , ,  
						
						
						
							  不过这个函数只能在使用PHP-FPM的时候使用, , , , ?  
						
						
						
							  还有一个问题就是如果这个需要运行的脚本的时间太长了, , ,  
						
						
						
							  另外在这种情况下我使用了TP框架还会遇到一个问题, , , ,  
						
						
						
							
 
						
						
						
							# 感想
  
						
						
						
							, , ,