Pazite sad ovo...
Funkcija header super radi ali u mom slučaju pravi veliki problem.
Ovo je kod koji radi...
<?
header("Location:
http://localhost/Test.php");
?>
Ukoliko imam određenu "količinu" koda prije ove funkcije neće da radi ne znam zašto. Kad kažem količinu koda ne mislim na broj redova nego sam ustanovio da se radi o broju karaktera. Neznam dali je to normalno ili je bug moje verzije php-a. Verzija je 4.3.1. Evo jednog jednostavnog primjera. Mozda ovaj primjer ima malo više koda ali mi je vazno da neko od vas to isproba kod sebe. Ovaj kod što ću postaviti automatski izvrši reditrekciju na stranicu test.php. Ukoliko dodam samo još jedan znak u html kod iznad funkcije redirekcije nema i samo se prikazuje ova početna stranica. Evo i koda:
<?php
?>
<table width='750' height='20' border='1'>
<tr>
<td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td>
</tr>
</table>
<table width='750' height='20' border='1'>
<tr>
<td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td>
</tr>
</table>
<table width='750' height='20' border='1'>
<tr>
<td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td>
</tr>
</table>
<table width='750' height='20' border='1'>
<tr>
<td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td>
</tr>
</table>
<table width='750' height='20' border='1'>
<tr>
<td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td>
</tr>
</table>
<table width='750' height='20' border='1'>
<tr>
<td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td>
</tr>
</table>
<table width='750' height='20' border='1'>
<tr>
<td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td>
</tr>
</table>
<table width='750' height='20' border='1'>
<tr>
<td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td>
</tr>
</table>
<table width='750' height='20' border='1'>
<tr>
<td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td>
</tr>
</table>
<table width='750' height='20' border='1'>
<tr>
<td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td>
</tr>
</table>
<table width='750' height='20' border='1'>
<tr>
<td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td>
</tr>
</table>
<table width='750' height='20' border='1'>
<tr>
<td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td>
</tr>
</table>
<table width='750' height='20' border='1'>
<tr>
<td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td>
</tr>
</table>
<table width='750' height='20' border='1'>
<tr>
<td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td>
</tr>
</table>
<table width='750' height='20' border='1'>
<tr>
<td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td>
</tr>
</table>
<table width='750' height='20' border='1'>
<tr>
<td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td>
</tr>
</table>
<table width='750' height='20' border='1'>
<tr>
<td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td>
</tr>
</table>
<table width='750' height='20' border='1'>
<tr>
<td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td>
</tr>
</table>
<table width='750' height='20' border='1'>
<tr>
<td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td>
</tr>
</table>
<table width='750' height='20' border='1'>
<tr>
<td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td>
</tr>
</table>
<table width='750' height='20' border='1'>
<tr>
<td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td>
</tr>
</table>
<table width='750' height='20' border='1'>
<tr>
<td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td><td width='150'></td>
</tr>
</table>
<table border='1'>
<tr>
<td> </td>
</tr>
</table>
<?
header("Location:
http://localhost/Test.php");
?>