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
Pomoc

 
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
Hrvoje



Joined: 03 Sep 2004
Posts: 132
Location: My office

PostPosted: 15.01.2010 15:37    Post subject: Pomoc Add user to your forum ignore list Reply with quote

Kako da rijesim slijedeci problem... jos ucim php i nije mi bas jasna ova greska.
Search mi nije pomogao

Greška:
Code:

Warning: Cannot modify header information - headers already sent by (output started at /home/web/public_html/hrvoje/stranica/kontakt.php:5) in /home/web/public_html/hrvoje/stranica/test.php on line 56
Back to top
View user's profile Send private message
i72852



Joined: 25 Feb 2004
Posts: 81

PostPosted: 15.01.2010 17:13    Post subject: Add user to your forum ignore list Reply with quote

u liniji 56. imas neki redirect. Nest ovakvo:
Code:

header("Location: ...");



E, ali prije te linije ne smijes imatati nikakav ispis (npr. echo, printf, neki HTML code)..
Back to top
View user's profile Send private message Visit poster's website
Hrvoje



Joined: 03 Sep 2004
Posts: 132
Location: My office

PostPosted: 15.01.2010 18:21    Post subject: Add user to your forum ignore list Reply with quote

U liniji 56 imam samo ovo:
Code:
setcookie("pollidcookie", $question, time()+$time_between_votes);


Inace radi se o anketi, ali mi nije jasno i dalje Crying or Very sad
Back to top
View user's profile Send private message
i72852



Joined: 25 Feb 2004
Posts: 81

PostPosted: 15.01.2010 20:01    Post subject: Add user to your forum ignore list Reply with quote

U kojem file-u? :)

Ovaj header trebao bi se nalaziti u "/home/web/public_html/hrvoje/stranica/test.php" 56. linija. A negdje u test.php imas i include('kontakt.php');
Back to top
View user's profile Send private message Visit poster's website
mile



Joined: 10 Sep 2003
Posts: 1327
Location: Jeruzalem

PostPosted: 16.01.2010 12:52    Post subject: Add user to your forum ignore list Reply with quote

Probaj staviti taj setcookie na vrh fajla, iznad svega.

_________________
mile.is
Back to top
View user's profile Send private message Visit poster's website
sysrq147



Joined: 01 Jan 2010
Posts: 9

PostPosted: 18.01.2010 09:50    Post subject: Add user to your forum ignore list Reply with quote

To se dešava veoma često, i najvjerovatnije negdje prije ili poslje oznaka <?php ?> imaš prazan prostor. Pokušaj promjeniti Encoding, jer su često taj prazan prostor nije vidljiv i nemoguće ga je označiti u Dreamweaveru(ako radiš u njemu). Takva su moja iskustva, prebaci sve u neki drugi editor, promjeni Encoding i vidjet ćeš nekakve čudne znakove.. Smile .
Back to top
View user's profile Send private message
sysrq147



Joined: 01 Jan 2010
Posts: 9

PostPosted: 18.01.2010 09:53    Post subject: Add user to your forum ignore list Reply with quote

Više o tome imaš ovdje...

http://en.wikipedia.org/wiki/Byte_order_mark
Back to top
View user's profile Send private message
Hrvoje



Joined: 03 Sep 2004
Posts: 132
Location: My office

PostPosted: 21.01.2010 12:42    Post subject: Add user to your forum ignore list Reply with quote

Na localhostu mi radi savršeno, ne kuzim zasto ne radi kad ga uploadam na host??? Crying or Very sad
Back to top
View user's profile Send private message
mile



Joined: 10 Sep 2003
Posts: 1327
Location: Jeruzalem

PostPosted: 21.01.2010 13:23    Post subject: Add user to your forum ignore list Reply with quote

ništa onda, drži stranice lokalno.
tko ih hoće vidjeti nek dođe kod tebe doma.

_________________
mile.is
Back to top
View user's profile Send private message Visit poster's website
Zeus



Joined: 09 Sep 2003
Posts: 775
Location: Čakovec

PostPosted: 21.01.2010 13:45    Post subject: Add user to your forum ignore list Reply with quote

mile wrote:
ništa onda, drži stranice lokalno.
tko ih hoće vidjeti nek dođe kod tebe doma.


:)))))))))))
Back to top
View user's profile Send private message Twitter profile
Hrvoje



Joined: 03 Sep 2004
Posts: 132
Location: My office

PostPosted: 21.01.2010 13:52    Post subject: Add user to your forum ignore list Reply with quote

Heheheh, ma moze i to, ali ipak je bolje ovako. Nisam jos rijesio problem danima to vrtim ali nikako skuzit
Back to top
View user's profile Send private message
ghosap



Joined: 18 Sep 2003
Posts: 79

PostPosted: 21.01.2010 13:58    Post subject: Add user to your forum ignore list Reply with quote

Ako imas problema sa pronalaženjem problema, onda ga probaj zaobići,
U index.php datoteku il koji vec pozivas stavi odma iza <?php tagova ob_start();
Iako to sluzi za puno bolje stvari moze ti rjesit problem.
Savjetujem i da procitas vise na http://www.php.net/manual/en/ref.outcontrol.php

A što se uzroka problema tice, to je ocito, imas neki output prije samog setcookie, pretpostavljam (onako mi prvo pada na pamet) da na localu nemas iste postavke kao i na online, pa među ostalom moze je postavljen i ob_implicit_flush, mozes probat umjesto ob_start stavit ob_implicit_flush(false);

_________________
. . . and when the balance is lost all that is left is the reckening . . .
Back to top
View user's profile Send private message
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