Im PHP 4.3.11 ile çalışan ve ben çalıştırdığınızda bir header, her zaman böyle bir hata ile yanıt
Warning: başlık bilgileri değiştirilemiyor - zaten tarafından gönderilen başlıklar (çıkışında d başladı: \ klasör \ file.php: 1) in d:\folder\file.php on line 2
Warning: Cannot modify header information - headers already sent by (output started at d:\folder\file.php:1) in d:\folder\file.php on line 3 Current PHP version: 4.3.11
Ben bu hatayı oluşturmak için kullanılan kod oldu
<?php
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
echo 'Current PHP version: ' . phpversion();
// prints e.g. '2.0' or nothing if the extension isn't enabled
echo phpversion('tidy');
?>
Bu php etiketleri önce veya sonra boşluk ne satırsonu vardır, ve beklendiği gibi bir 5.x sürümünde aynı kod sadece php sürümünü döndürür.
Herhangi bir ipucu?
Şimdiden teşekkürler
Edit: Solved!: I've opened the file with western european encoding and deleted the BOM and it worked. Thanks all for your help!