txt olmasının özel bir nedeni var mı ?
json,xml,sql yerine neden txt ?
json,xml,sql yerine neden txt ?
Scriptin yapısı böyle malesef.
Bu kod işini görür mü ?
index.php
dosya.txt
index.php
	
		
		Enes Yalçın 
	
	
		
					$file = 'dosya.txt';
			$find = $_POST['q'];
			$contents = file_get_contents($file);
			$pattern = preg_quote($find, '/');
			$pattern = "/^.*$pattern.*\$/m";
			if(preg_match_all($pattern, $contents, $matches)){
			   echo implode("\n", $matches[0]);
			}
			else{
			   echo "Sonuç bulunamadı";
			}} ?>
	
dosya.txt
Çalışıyor ancak diğer kısımları nasıl çekebilirim alt bilgilerini ?
 
  
