<META http-equiv="content-type" content="text/html" charset="iso-8859-9"> <META http-equiv="content-type" content="text/html" charset="windows-1254"> <META http-equiv="content-type" content="text/html" charset="x-mac-turkish">Scriptlerde türkçe karakter sorunu için çözüm.
------------------------------------------------------------------------------------------------
@mysql_unbuffered_query('SET NAMES latin5');
@mysql_unbuffered_query('SET CHARACTER SET latin5');
@mysql_unbuffered_query('SET COLLATION_CONNECTION = \'latin5_turkish_ci\'');databasede türkçe karakter hatası için çözüm.------------------------------------------------------------------------------------------------
<?php $kime = 'test@mail.com'; $konu = 'Mail Gönderim Başlığı'; $icerik = 'Mail Gönderim Detayları'; //$header : Mailin kimden gittiği vb. tanımlamalar... mail ($kime, $konu, $icerik, $header) ; ?>PHP ile mail yollama.
------------------------------------------------------------------------------------------------
<?php
// MySQL Bilgileri
$database_host = "localhost";
$database_name = "";
$database_user = "";
$database_pass = "";
// MySQL Bağlantısı
$baglan = mysql_connect("$database_host","$database_user","$database_pass") or die (mysql_error());
mysql_select_db("$database_name",$baglan) or die (mysql_error());
// Türkçe Karakter Sorunu
mysql_query("SET NAMES 'latin5'");
?>Database bağlantı dosyası.------------------------------------------------------------------------------------------------
<?php
ini_set("display_errors" , "Off");
?>Hataları ekrana yazdırmayı önlemek.------------------------------------------------------------------------------------------------
<?php
@setlocale(LC_ALL, 'turkish');
echo strftime("%d %B %Y, %A %H:%M", time());
?>Türkçe olarak Tarih ve Saati ekrana yazdırma.