radarrplexorganizrnginxsonarrdashboardsabnzbdheimdallembycouchpotatonzbgetbookmarkapplication-dashboardmuximuxlandingpagestartpagelandinghtpcserverhomepage
		
		
		
		
			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.
		
		
		
		
		
			
		
			
				
					
					
						
							20 lines
						
					
					
						
							312 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							20 lines
						
					
					
						
							312 B
						
					
					
				
								<?php
							 | 
						|
								
							 | 
						|
								$tries = 0;
							 | 
						|
								start:
							 | 
						|
								$tries++;
							 | 
						|
								$success = @ftp_connect("localhost", 21, 2);
							 | 
						|
								
							 | 
						|
								if ($success) {
							 | 
						|
								    fwrite(STDOUT, "Connected successfully.\n");
							 | 
						|
								    exit(0);
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								if ($tries > 10) {
							 | 
						|
								    fwrite(STDOUT, "Failed to connect.\n");
							 | 
						|
								    exit(1);
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								sleep(1);
							 | 
						|
								fwrite(STDOUT, "Waiting for a connection...\n");
							 | 
						|
								goto start;
							 |