Article View: pl.comp.lang.php
Article #230737Re: (ciekawostka) sesja
From: xantiros
Date: Sun, 02 Nov 2014 22:28
Date: Sun, 02 Nov 2014 22:28
30 lines
1672 bytes
1672 bytes
On 2014-11-02 21:15, platformowe głupki wrote:
> jebać po/eu/pw
>
> dlaczego to działa:
> <?
> header('Content-type: text/html; charset=utf-8');
>
> if (!isset($_SESSION)) //sprawdzamy czy sesja istnieje
> session_start(); //startujemy jÄ…
> ?>
>
> a to juĹĽ nie:
> <?
> echo 'Content-type: text/html; charset=utf-8';
>
> if (!isset($_SESSION)) //sprawdzamy czy sesja istnieje
> session_start(); //startujemy jÄ…
> ?>
>
> to drugie działa jak się zamieni
> <?
> if (!isset($_SESSION)) //sprawdzamy czy sesja istnieje
> session_start(); //startujemy jÄ…
>
> echo 'Content-type: text/html; charset=utf-8';
> ?>
ciekawostka dla ciebie, dla mnie normalne działanie php geniuszu
Technical Details
Message-ID:
<m36b6t$3je$2@node1.news.atman.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mailReferences:
<m363ds$t3o$2@node2.news.atman.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail From: xantiros <_wytnij_to_xantiros@ymail.com> Newsgroups: pl.comp.lang.php Subject: Re: (ciekawostka) sesja Date: Sun, 02 Nov 2014 23:28:45 +0100 Organization: ATMAN - ATM S.A. Lines: 30 Message-ID: <m36b6t$3je$2@node1.news.atman.pl> References: <m363ds$t3o$2@node2.news.atman.pl> NNTP-Posting-Host: 89-70-28-167.dynamic.chello.pl Mime-Version: 1.0 X-Trace: node1.news.atman.pl 1414967325 3694 89.70.28.167 (2 Nov 2014 22:28:45 GMT) X-Complaints-To: usenet@atman.pl NNTP-Posting-Date: Sun, 2 Nov 2014 22:28:45 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 In-Reply-To: <m363ds$t3o$2@node2.news.atman.pl> X-Antivirus: avast! (VPS 141102-1, 2014-11-02), Outbound message X-Antivirus-Status: Clean Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit