Ara 7 2011
Php ile permayapmak ?
<?php function permayap($deger) { $turkce=array(“ş”,”Ş”,”ı”,”(“,”)”,”‘”,”ü”,”Ü”,”ö”,”Ö”,”ç”,”Ç”,” “,”/”,”*”,”?”,”ş”,”Ş”,”ı”,”ğ”,”Ğ”,”İ”,”ö”,”Ö”,”Ç”,”ç”,”ü”,”Ü”); $duzgun=array(“s”,”S”,”i”,””,””,””,”u”,”U”,”o”,”O”,”c”,”C”,”-“,”-“,”-“,””,”s”,”S”,”i”,”g”,”G”,”I”,”o”,”O”,”C”,”c”,”u”,”U”); $deger=str_replace($turkce,$duzgun,$deger); $deger = preg_replace(“@[^A-Za-z0-9-_]+@i”,””,$deger); return $deger; } ?>



Ara 7 2011
How to php linux .htaccess rule. Hide .php extension with url rewriting using .htaccess redirect htm , html to php extention. .htaccess kuralı rule nasıl yazılır.
.htaccess rule örnekleri aşağıdaki gibidir. Örneğin http://localhost/test.htm böyle bir istekte test.htm de php kodu çalıştırmak Options +FollowSymlinks RewriteEngine on RewriteRule ^(.*).htm$ $1.php [nc] Options +FollowSymlinks RewriteEngine on RewriteRule ^product-([0-9]+).html$ products.php?id=$1 product.php?id=5 olan isteği porduct-5.html ile çağırdığımızda nasıl çalışır http://localhost/product-5.html product.php?id=5 arkaplanda bu çalışır
Devamı
By Burhan KARADERE • ? Php ?, Programlama - Software • 0 • Tags: ? Php ?, .httpaccess, how to, rule