Hızlı Erişim

Arşiv

Hava Durumu

Yağmur 6°C Yağmur
Çar Yağmur İhtimali
3/0
Per Kar Yağışı İhtimali
3/-1
Cum Kar Yağışı İhtimali
3/-1

Php Array örneği ? Php array example

Arrays are used in any programming language. You can imagine an array as a long box with many the same compartments, like this |___|___|___|___|___|.What ever you put in a compartment is its value. The following array |_a_|_b_|_c_|_d_|_e_| contains characters a,b,c,d,e. To access a value you should know in which compartment it is placed. For

[..]Devamını Oku

Php Mysql InnoDB ve MyISAM farkları

InnoDB ve MyISAM

 

Olaya MyISAM yönüyle bakarsak;

MyISAM daha ziyade okuma (select) yapılan tablolarda tercih edilir çünkü InnoDB gibi farklı tablolarla ilişki kurmadığından daha hızlı şekilde okuma yapılabilir. MyISAM full text search özelliğine sahiptir. Transaction desteği yoktur; bu nedenle hızlı çalışsa bile yaptığınız işlemleri geri alamazsınız; veri bütünlüğü yoktur. Bir kayıt eklenirken veya

[..]Devamını Oku

htm ve html de php çalıştırma .htaccess ayarları

Edit the .htaccess file

default yol  :  /home/username/public_html

 .htaccess sayfasını bulun

aşağıdaki kodu ekleyin :

RemoveHandler .html .htm AddType application/x-httpd-php .php .htm .html  .htaccess kaydedin PHP kodunu  bit  .html de çalıştırma

örnek sayfa test.html

  test.html kodu : <html> <head> </head> <body> <h1> <?php echo “php cok guzel”; ?> </h1> </body>

[..]Devamını Oku

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

[..]Devamını Oku

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;  }  ?>

Frontpage 2003 ile Php kullanımı. Using PHP with FrontPage 2003

What is PHP? PHP is a server-side scripting language (scripting language: A simple programming language designed to perform special or limited tasks, sometimes associated with a particular application or function.) that you can embed into HTML when you create dynamic Web pages. PHP is an open-source product that you can use, alter, and redistribute without charge. Originally PHP stood for Personal Home Page tool, but over time it has evolved to stand for PHP: Hypertext Preprocessor. In general, dynamic Web pages are pages that interact with users, so that each site visitor sees customized information. In the case of PHP, dynamic also means that data is pulled from a database. Dynamic Web applications are prevalent in commercial (e-commerce) sites, where the content displayed is generated from information that is accessed from a database or other external source. PHP’s syntax is similar to that of C and Perl, making it easy to learn for anyone with basic programming skills. PHP supports only partial encapsulation (such as support for declaring methods and fields in the class) and partial polymorphism (no overloading, no abstraction). With PHP, there is no concept of private, public, or protected functions in classes as well as in the overloading.

[..]Devamını Oku

Php class içinde global değişken kullanımı ? Php Class Kullanımı

Php class içinde global değişken kullanımı ? Php Class Kullanımı

[..]Devamını Oku

Php ile array ile array değiştirme. Replace array to array

“burhan”, “soyadi” => “karadere”); $dizi2 = array(“adi” => “BurHaN”,”id” => “250″); function polecat_array_replace( array &$array1, array &$array2 ) { if(!function_exists(‘tier_parse’)){ function tier_parse(array &$t_array1, array&$t_array2) { foreach ($t_array2 as $k2 => $v2) { if (is_array($t_array2[$k2])) { tier_parse($t_array1[$k2], $t_array2[$k2]); } else { $t_array1[$k2] = $t_array2[$k2]; } } return $t_array1; } } foreach ($array2 as $key => $val) { if (is_array($array2[$key])) { tier_parse($array1[$key], $array2[$key]); } else { $array1[$key] = $array2[$key]; } } return $array1; } print_r($dizi1); print_r($dizi2); polecat_array_replace($dizi1,$dizi2); print_r($dizi1) ; ?>

[..]Devamını Oku

Php array kullanımı ? how to array php ?

$changetitle = array(“adsoyad” => “Adı Soyadı”, “kadi” => “Kullanıcı Adı”,); print_r($changetitle) ;

Ubuntu apache 2, php, mysql, phpmyadmin kurulumu ? How to install on apache 2, php, mysql and phpmyadmin ?

Ubuntu command shell den aşağıdaki komutları sıra ile çalıştırmanız yeterli olacak. sudo apt-get install apache2 sudo apt-get install php5 sudo apt-get install libapache2-mod-php5 sudo /etc/init.d/apache2 restart

[..]Devamını Oku

Toplam 2 sayfa, 1. sayfa gösteriliyor.12