I have problem with the function header. I think is because the php version, because I am testing in home server by using php 4.3, but when i upload for the server that are using php 4.0.6 the headers don’t work
header("Location:index.php?accao=login_error");
Anda the error:
Warning: Cannot add header information - headers already sent by (output started at /var/www/html/apie/klog/admin/teste.php:8) in /var/www/html/apie/klog/admin/teste.php on line 9
hmm… i always use print with ()…but ok :P…and i don’t have html before header…
look, i have other problem, i have some sites working with php 4.06 but now i want upgrade de php version in server, but i have the problem with register_globals, if i ugrade to the last version, that sites that are working with 4.0.6, will brooke because the register globals…and it’s really boring to put $HTTP_GET_VARS[]; / $HTTP_POST_VARS[]; etc… in all old site…Do u know any solution for this??