• 14-03-2014, 23:12:49
    #1
    "Function eregi() is deprecated" şeklinde hata alıyorum aşağıdaki kodun oldugu kısımlarda. aşağıdaki kodları nasıl düzeltebilirim

    function game_file(){
    		global $swf;
    		if(eregi('<frame', $swf)) {  
    			echo $swf;
    		} else if(eregi('<embed', $swf)) {  
    			echo $swf;
    		} else if(eregi('<iframe', $swf)) {  
    			echo $swf;
    		} else if(eregi('.dcr', $swf)) { 
    			echo '<script type="text/javascript">
    			<!--
    			dcr("'.$swf.'", "728", "490");//-->
    			</script>'; 
    		} else if(eregi('.swf', $swf)) { 
    			echo $swf;
  • 14-03-2014, 23:24:44
    #2
    preg_match yada mb_eregi gibi alternatifleri var, yakında kaldırılacağı veya her yerde doğru sonuç vermediği için tavsiye edimiyor.
  • 14-03-2014, 23:34:13
    #3
    function game_file(){
    		global $swf;
    		if(preg_match("/<frame/i", $swf)) {  
    			echo $swf;
    		} else if(preg_match("/<embed/i", $swf)) {  
    			echo $swf;
    		} else if(preg_match("/<iframe/i", $swf)) {  
    			echo $swf;
    		} else if(preg_match("/.dcr/i", $swf)) { 
    			echo '<script type="text/javascript">
    			<!--
    			dcr("'.$swf.'", "728", "490");//-->
    			</script>'; 
    		} else if(preg_match("/.swf/i", $swf)) { 
    			echo $swf;
    denermisin.
    şuanda tabletten yazıyorum. noktalama hatası yada yanlış yazım vs olabilir.
  • 14-03-2014, 23:39:18
    #4
    S_HA_DO_W adlı üyeden alıntı: mesajı görüntüle
    function game_file(){
    		global $swf;
    		if(preg_match("/<frame/i", $swf)) {  
    			echo $swf;
    		} else if(preg_match("/<embed/i", $swf)) {  
    			echo $swf;
    		} else if(preg_match("/<iframe/i", $swf)) {  
    			echo $swf;
    		} else if(preg_match("/.dcr/i", $swf)) { 
    			echo '<script type="text/javascript">
    			<!--
    			dcr("'.$swf.'", "728", "490");//-->
    			</script>'; 
    		} else if(preg_match("/.swf/i", $swf)) { 
    			echo $swf;
    denermisin.
    şuanda tabletten yazıyorum. noktalama hatası yada yanlış yazım vs olabilir.
    çok teşekkür ederim çözüldü bu şekilde