Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Php Icindekiler
1. PHP-icindekiler 4/23/09 12:43 AM Page v
‹Ç‹NDEK‹LER
1 OBJECT ORIENTED PROGRAMLAMA 1
Bafllang›ç “Construct ve Destruct Metotlar›” 2
__autoload Fonksiyonu 3
Gizlilik 4
Public 6
Private 7
Protected 9
Static Metot 11
Const “Sabit” Metot 13
Final Metot 14
Sihirbaz Metotlar 15
__toString 15
__call 16
Overloading 16
Nesne (Kopyalama) Klonlama 21
Soyut S›n›flar 24
Nesne Arayüzleri “Interface” 32
Son Söz 37
2 GeoIP ‹LE IP KONTROL 39
Son Söz 46
3 MEMCACHE 47
Ne Tür Sitelerde Kullan›l›r? 49
Kurulum 50
PHP için Memcache Kurulumu 52
PHP ile Memcache Kullan›m› 54
Smarty ve Memcache ile cache 57
Session’› Memcache’de Tutmak 60
Son Söz 62
2. PHP-icindekiler 4/23/09 12:43 AM Page vi
vi PHP
4 xCache 65
Smarty ve xCache 72
Son Söz 74
5 MySQL 75
MySQL Tablo Yap›lar› 77
MyISAM 78
InnoDB 80
BerkeleyDB 83
ARCHIVE 83
MEMORY 84
CSV 85
EXAMPLE 85
FEDERATED 86
MERGE veya MRG_MYISAM 87
Fonksiyonlar 88
VIEW 90
TRIGGER 92
Stored Procedures 95
PREPARE 96
WHILE 97
CURSOR 98
EVENTS SCHEDULER 101
INDEX’ler 104
FULLTEXT INDEX 107
QUERY CACHE 111
PARTITION 113
Transaction Backup 119
SLOW QUERY LOG 120
MySQL Performan›n› Artt›rmak 122
Son Söz 123
3. PHP-icindekiler 4/23/09 12:43 AM Page vii
‹Ç‹NDEK‹LER vii
6 ZendPlatform 125
ZendPlatform’un Yararlar› 126
Son Söz 128
7 VERS‹YON KONTROL “SUBVERSION” 131
CVS 132
Subversion 132
Avantajlar› 133
Ne için Kullan›labilir? 133
Linux için Kurulum 134
Windows için Kurulum 135
Subversion ile Proje Oluflturma 135
Subversion Ayarlar› 137
Checkout Komutu 139
add ve commit Komutlar› 140
delete 140
copy ve move Komutlar› 141
List 142
log 143
cleanup 143
update 144
Subversion’a D›flar›dan Eriflim 145
WebDav ile Subversion’a Eriflim 147
TortoiseSVN 148
Subversion’un Web Projelerinde Kullan›lmas› 155
Zend Studio ile Subversion Kullan›m› 156
Son Söz 159
8 SMARTY 161
Smarty’nin Bize Sa¤lad›¤› Faydalar 162
MVC “Model, Görünüm, Kontrol” Yap›s› 163
Smarty’de include 168
Smarty ile Cache’leme 170
Smarty’de Çoklu Cache 171
4. PHP-icindekiler 4/23/09 12:43 AM Page viii
viii PHP
Smarty’de Cache ‹çerisinde Dinamik Alan Oluflturma 176
Smarty’de Plugin Oluflturma 177
MVC ile Üyelik Sistemi Uygulamas› 180
Son Söz 226
9 VPOS 3D SECURE UYGULAMASI “SANAL POS” 227
3D Secure 228
Kart Sahibi için Yararlar› 229
E-Ticaret Siteleri için Faydalar› 229
Normal API ile Kredi Kart›yla ‹fllem Mant›¤› 229
3D Secure ile Kredi Kart› ‹fllem Mant›¤› 230
3D Secure ile Güvenli Ödeme ‹fllemi 233
Son Söz 272
10 SEO (SEARCH ENGINE OPTIMIZATION) 273
Site Haritas› 274
Site Haritas› Kaydetme 275
Robots 275
Arama Motorlar›na Özel ‹çerik Listeleme 276
Apache için Rewrite 277
Lighttpd için SEO 281
Son Söz 283
11 AJAX 285
AJAX JS 286
JSON 290
JSON ile Listeleme 293
Location “Ülke-‹l-ilçe” Sistemi 298
Son Söz 314
12 TASARIM fiABLONU (DESIGN PATTERN) 317
Singleton Pattern 317
Factory Pattern 321
Decorate Pattern 323
Prototype Pattern 325
Adapter Pattern 327
Son Söz 328