Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
Warning: Cannot modify header infor...

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
CroBux



Joined: 24 Oct 2004
Posts: 1
Location: Ivanec

PostPosted: 24.10.2004 17:36    Post subject: Warning: Cannot modify header infor... Add user to your forum ignore list Reply with quote

J**e me to već cijeli dan. Riječ je o tome:
Npr. imam file index.php i u njega includam neki.php. U index.php upišem:
Code:
<?php
include("neki.php");
Header("Location: index2.php");
?>

Kad u browseru pozovem index.php pojavljuje mi se ovo upozorenje:
Warning: Cannot modify header information - headers already sent by (output started at d:\appserv\www\neki.php:30) in d:\appserv\www\razred\index.php on line 2
Zašto, može li se to kako spriječiti?
Back to top
View user's profile Send private message
liban0n



Joined: 10 Feb 2004
Posts: 128
Location: Dubrovnik, Zagreb

PostPosted: 24.10.2004 21:52    Post subject: Add user to your forum ignore list Reply with quote

<?php
Header("Location: index2.php");
include("neki.php");
?>

_________________
mount -t swap /dev/brain /mnt/head
look'n for a job
Back to top
View user's profile Send private message Visit poster's website
Tompa



Joined: 14 Oct 2004
Posts: 64
Location: Prudnice

PostPosted: 25.10.2004 08:30    Post subject: Re: Warning: Cannot modify header infor... Add user to your forum ignore list Reply with quote

CroBux wrote:
J**e me to već cijeli dan. Riječ je o tome:
Npr. imam file index.php i u njega includam neki.php. U index.php upišem:
Code:
<?php
include("neki.php");
Header("Location: index2.php");
?>

...



hm da, liban0n ima pravo. naime, ne moze se napravit redirekcija ukoliko je vec poslan bilo kakvi podaci. pa, vjerojatno, ukoliko u includanom fileu imas bilo kakvu print ili echo ili sl. naredbu, javit ce se greska....
Back to top
View user's profile Send private message Visit poster's website
zytzagoo
mi3.crew


Joined: 25 Aug 2003
Posts: 1842
Location: Zagreb, Hrvatska

PostPosted: 25.10.2004 13:37    Post subject: Add user to your forum ignore list Reply with quote

Mozes probati na pocetku prvog file-a staviti
Code:
<?php ob_start(); ?>

medjutim, to je samo quickfix i ne mora raditi uvijek, ali tvoj problem vise izgleda logicke prirode, odnosno, mozda to sto zelis napraviti mozes na drugi nacin neki...

_________________
[+]I[+]am[+]my[+]own[+]religion[+]
Back to top
View user's profile Send private message Visit poster's website Twitter profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group