Podłącze się do tematu. Mam problem z przekierowaniem header, wszystko było dobrze, dopóki nie przeszedłem na PHP 5.3.0.
Teraz apache mi się wiesza i serwuje taki błąd.
[Mon Mar 15 13:13:29 2010] [notice] Parent: child process exited with status 255 -- Restarting.
[Mon Mar 15 13:13:29 2010] [notice] Apache/2.2.11 (Win32) PHP/5.3.0 configured -- resuming normal operations
[Mon Mar 15 13:13:29 2010] [notice] Server built: Dec 10 2008 00:10:06
[Mon Mar 15 13:13:29 2010] [notice] Parent: Created child process 3536
[Mon Mar 15 13:13:29 2010] [notice] Child 3536: Child process is running
[Mon Mar 15 13:13:29 2010] [notice] Child 3536: Acquired the start mutex.
[Mon Mar 15 13:13:29 2010] [notice] Child 3536: Starting 64 worker threads.
[Mon Mar 15 13:13:29 2010] [notice] Child 3536: Starting thread to listen on port 80.
Poniżej fragment kodu.
$tableName = 'przeglady';
if (addRecord($db, $tableName, $przeglady)){
echo "<center><h1>Przeglądy zostały nadane.</ h1><center/>" ; }else{
}
header("Refresh: 2; URL=../../index2.php?go=szybowce");
Drugie pytanie, czy header musi być na początku (przed kodem) ? Jeśli tak to jak zrobić przekierowanie w podobnej sytuacji