<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум PHP-MyAdmin.RU &mdash; Ошибка Warning: Cannot modify header information]]></title>
	<link rel="self" href="https://forum.php-myadmin.ru/extern.php?action=feed&amp;tid=1631&amp;type=atom" />
	<updated>2010-03-23T22:22:27Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.php-myadmin.ru/viewtopic.php?id=1631</id>
		<entry>
			<title type="html"><![CDATA[Re: Ошибка Warning: Cannot modify header information]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=11280#p11280" />
			<content type="html"><![CDATA[<p><strong>Sandman276286</strong><br />Пришлите оба файла, которые вы запускаете на hanut@php-myadmin.ru</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2010-03-23T22:22:27Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=11280#p11280</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Ошибка Warning: Cannot modify header information]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=11278#p11278" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Sandman276286]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=2661</uri>
			</author>
			<updated>2010-03-23T21:02:00Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=11278#p11278</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Ошибка Warning: Cannot modify header information]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=11273#p11273" />
			<content type="html"><![CDATA[<p>Для работы сессий не хватает вызова функции [mono]session_start();[/mono].</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2010-03-23T15:12:20Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=11273#p11273</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Ошибка Warning: Cannot modify header information]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=11269#p11269" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Sandman276286]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=2661</uri>
			</author>
			<updated>2010-03-23T14:48:15Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=11269#p11269</id>
		</entry>
</feed>
