<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Форум PHP-MyAdmin.RU &mdash; Ошибка Warning: Cannot modify header information]]></title>
		<link>https://forum.php-myadmin.ru/viewtopic.php?id=1631</link>
		<atom:link href="https://forum.php-myadmin.ru/extern.php?action=feed&amp;tid=1631&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Ошибка Warning: Cannot modify header information».]]></description>
		<lastBuildDate>Tue, 23 Mar 2010 22:22:27 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Ошибка Warning: Cannot modify header information]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=11280#p11280</link>
			<description><![CDATA[<p><strong>Sandman276286</strong><br />Пришлите оба файла, которые вы запускаете на hanut@php-myadmin.ru</p>]]></description>
			<author><![CDATA[null@example.com (Hanut)]]></author>
			<pubDate>Tue, 23 Mar 2010 22:22:27 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=11280#p11280</guid>
		</item>
		<item>
			<title><![CDATA[Re: Ошибка Warning: Cannot modify header information]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=11278#p11278</link>
			<description><![CDATA[<div class="quotebox"><cite>Hanut сказал:</cite><blockquote><p>Для работы сессий не хватает вызова функции [mono]session_start();[/mono].</p></blockquote></div><p>теперь выдает сразу 3 ошибки </p><p>Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at Z:\home\localhost\www\mysql.inc:16) in Z:\home\localhost\www\auto.php on line 11</p><p>Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at Z:\home\localhost\www\mysql.inc:16) in Z:\home\localhost\www\auto.php on line 11</p><p>Warning: Cannot modify header information - headers already sent by (output started at Z:\home\localhost\www\mysql.inc:16) in Z:\home\localhost\www\auto.php on line 14</p>]]></description>
			<author><![CDATA[null@example.com (Sandman276286)]]></author>
			<pubDate>Tue, 23 Mar 2010 21:02:00 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=11278#p11278</guid>
		</item>
		<item>
			<title><![CDATA[Re: Ошибка Warning: Cannot modify header information]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=11273#p11273</link>
			<description><![CDATA[<p>Для работы сессий не хватает вызова функции [mono]session_start();[/mono].</p>]]></description>
			<author><![CDATA[null@example.com (Hanut)]]></author>
			<pubDate>Tue, 23 Mar 2010 15:12:20 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=11273#p11273</guid>
		</item>
		<item>
			<title><![CDATA[Ошибка Warning: Cannot modify header information]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=11269#p11269</link>
			<description><![CDATA[<p>хоть она и обсуждалсь делал все возможное. возможно вы мне поможите или подскажите.<br />вот мой код;</p><p>файл auto.php<br />&lt;?php<br />include(&quot;mysql.inc&quot;);<br /> if(isset($_POST[&#039;submit&#039;]))<br /> {<br />&nbsp; &nbsp;$login = $_POST[&#039;login&#039;];<br />&nbsp; &nbsp;$pas = $_POST[&#039;pas&#039;];<br />&nbsp; &nbsp;$result=mysql_query(&quot;SELECT * FROM tableone WHERE login=&#039;$login&#039;&quot;,$dp);<br />&nbsp; &nbsp;$myrrow = mysql_fetch_array($result);<br />&nbsp; &nbsp;if ($pas==$myrrow[&#039;password&#039;])<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; <span style="color: red">session_start();</span><br />&nbsp; &nbsp; $_SESSION[&#039;login&#039;]=$login;<br />&nbsp; &nbsp; $_SESSION[&#039;password&#039;]=$pas;<br />&nbsp; &nbsp; Header(&quot;Location: clientsx.php&quot;);<br />&nbsp; &nbsp; exit;<br />&nbsp; &nbsp;}<br />&nbsp; &nbsp; else<br />&nbsp; &nbsp;{<br />&nbsp; &nbsp; Header(&quot;Location: index.php&quot;);<br />&nbsp; &nbsp; exit;<br />&nbsp; &nbsp;}<br />&nbsp; &nbsp;}?&gt;<br />&lt;html&gt;<br />&lt;head&gt;<br />&lt;title&gt;&lt;/title&gt;<br />&lt;/head&gt;<br />&lt;body&gt;<br />&lt;FORM METHOD=POST&gt; Логин: &lt;INPUT NAME=&quot;login&quot; TYPE=&quot;text&quot;&gt;&lt;br&gt;<br />Пароль: &lt;INPUT NAME=&quot;pas&quot; TYPE=&quot;password&quot;&gt;&lt;br&gt;<br />&lt;INPUT NAME=&quot;submit&quot; TYPE=&quot;submit&quot; VALUE=&quot;Войти&quot;&gt;&lt;/FORM&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;</p><p>а вот файл mysql.inc<br />&lt;?php<br />$host = &quot;127.0.0.1&quot;;<br />$user = &quot;Sandman&quot;;<br />$pass = &quot;Anton&quot;;<br />$database = &quot;clients&quot;;<br />$dp = mysql_connect($host,$user,$pass);<br />mysql_select_db($database,$dp);<br />?&gt;</p>]]></description>
			<author><![CDATA[null@example.com (Sandman276286)]]></author>
			<pubDate>Tue, 23 Mar 2010 14:48:15 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=11269#p11269</guid>
		</item>
	</channel>
</rss>
