<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=PHP-and-MySQL%2FC2%2FCommon-Errors-Part-3%2FEnglish</id>
		<title>PHP-and-MySQL/C2/Common-Errors-Part-3/English - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=PHP-and-MySQL%2FC2%2FCommon-Errors-Part-3%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=PHP-and-MySQL/C2/Common-Errors-Part-3/English&amp;action=history"/>
		<updated>2026-05-15T13:42:15Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=PHP-and-MySQL/C2/Common-Errors-Part-3/English&amp;diff=851&amp;oldid=prev</id>
		<title>Pravin1389: moved PHP-and-MySQL/C2/Common-Errors-(Part 3)/English to PHP-and-MySQL/C2/Common-Errors-Part-3/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=PHP-and-MySQL/C2/Common-Errors-Part-3/English&amp;diff=851&amp;oldid=prev"/>
				<updated>2012-12-01T14:19:30Z</updated>
		
		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/index.php/PHP-and-MySQL/C2/Common-Errors-(Part_3)/English&quot; class=&quot;mw-redirect&quot; title=&quot;PHP-and-MySQL/C2/Common-Errors-(Part 3)/English&quot;&gt;PHP-and-MySQL/C2/Common-Errors-(Part 3)/English&lt;/a&gt; to &lt;a href=&quot;/index.php/PHP-and-MySQL/C2/Common-Errors-Part-3/English&quot; title=&quot;PHP-and-MySQL/C2/Common-Errors-Part-3/English&quot;&gt;PHP-and-MySQL/C2/Common-Errors-Part-3/English&lt;/a&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 14:19, 1 December 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Pravin1389</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=PHP-and-MySQL/C2/Common-Errors-Part-3/English&amp;diff=620&amp;oldid=prev</id>
		<title>Chandrika: Created page with '{| border=1 !Time !Narration |- |0:00 |Right now I am onto the last two common errors that I have included.  |- |0:04 |And we will start with the hard one.  |- |0:09 |This is php…'</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=PHP-and-MySQL/C2/Common-Errors-Part-3/English&amp;diff=620&amp;oldid=prev"/>
				<updated>2012-11-29T07:14:56Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;{| border=1 !Time !Narration |- |0:00 |Right now I am onto the last two common errors that I have included.  |- |0:04 |And we will start with the hard one.  |- |0:09 |This is php…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| border=1&lt;br /&gt;
!Time&lt;br /&gt;
!Narration&lt;br /&gt;
|-&lt;br /&gt;
|0:00&lt;br /&gt;
|Right now I am onto the last two common errors that I have included. &lt;br /&gt;
|-&lt;br /&gt;
|0:04&lt;br /&gt;
|And we will start with the hard one. &lt;br /&gt;
|-&lt;br /&gt;
|0:09&lt;br /&gt;
|This is php header and we are using &amp;quot;header&amp;quot; function going to a location.&lt;br /&gt;
|-&lt;br /&gt;
|0:14&lt;br /&gt;
|And here I have got some html code. &lt;br /&gt;
|-&lt;br /&gt;
|0:18&lt;br /&gt;
|This is a header tag, I am saying &amp;quot;Welcome!&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|0:21&lt;br /&gt;
|And our &amp;quot;goto&amp;quot; variable is &amp;quot;google dot com&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|0:25&lt;br /&gt;
|If the &amp;quot;goto&amp;quot; exists, which it currently does, we are going to redirect the page to a u-r-l &amp;quot;google dot com&amp;quot;. &lt;br /&gt;
|-&lt;br /&gt;
|0:35&lt;br /&gt;
|Right now, this will return an error.&lt;br /&gt;
|-&lt;br /&gt;
|0:37&lt;br /&gt;
|And the error is - Oh! um... Okay that’s why. &amp;quot;o b start&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|0:48&lt;br /&gt;
|Lets get rid of this.  That wasn’t supposed to be there. That code is to fix the error!&lt;br /&gt;
|-&lt;br /&gt;
|0:57&lt;br /&gt;
|Sorry, so we will go to &amp;quot;php header&amp;quot; and we have got &amp;quot;Welcome!&amp;quot; - our html code.&lt;br /&gt;
|-&lt;br /&gt;
|1:01&lt;br /&gt;
|Then a warning - &amp;quot;Cannot modify  header information – headers already sent by...&amp;quot; and all of this.&lt;br /&gt;
|-&lt;br /&gt;
|1:07&lt;br /&gt;
|Okay so our headers have already been sent. This is the line no. by the way.&lt;br /&gt;
|-&lt;br /&gt;
|1:14&lt;br /&gt;
|1, 2, 3 so if it gives you an error like &amp;quot;phpheader dot php&amp;quot; colon 3, then the error has occurred on the line no. 3.&lt;br /&gt;
|-&lt;br /&gt;
|1:27&lt;br /&gt;
|So that's where the error is - on line 3, okay? &lt;br /&gt;
|-&lt;br /&gt;
|1:32&lt;br /&gt;
|And this error has been generated by line 9, which if you go here, is our &amp;quot;header&amp;quot; function. &lt;br /&gt;
|-&lt;br /&gt;
|1:39&lt;br /&gt;
|So the reason that this is happening is we are already sending our html code.&lt;br /&gt;
|-&lt;br /&gt;
|1:47&lt;br /&gt;
|If I get rid of this by commenting it, and I were to refresh then we would be redirected to google.&lt;br /&gt;
|-&lt;br /&gt;
|1:54&lt;br /&gt;
|But the point is that we want this welcome header here.&lt;br /&gt;
|-&lt;br /&gt;
|1:59&lt;br /&gt;
|And you can’t actually put html before a header function, going to location and other features of this function. &lt;br /&gt;
|-&lt;br /&gt;
|2:10&lt;br /&gt;
|You shouldn't do so.&lt;br /&gt;
|-&lt;br /&gt;
|2:15&lt;br /&gt;
|So as you saw a minute ago that is &amp;quot;ob underscore start&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|2:20&lt;br /&gt;
|What this does is, it fixes this problem for us.&lt;br /&gt;
|-&lt;br /&gt;
|2:25&lt;br /&gt;
|So I can come here to &amp;quot;phpheader&amp;quot; and it works, even though I have still got my html code echoed here before my header.&lt;br /&gt;
|-&lt;br /&gt;
|2:35&lt;br /&gt;
|So without this we get an error (pause) and with this our header works fine, okay?  &lt;br /&gt;
|-&lt;br /&gt;
|2:47&lt;br /&gt;
|Despite the initial rule of no html output before header up here.&lt;br /&gt;
|-&lt;br /&gt;
|2:53&lt;br /&gt;
|That should be pretty clear by now.&lt;br /&gt;
|-&lt;br /&gt;
|2:55&lt;br /&gt;
|Now, the last one is extremely simple. &lt;br /&gt;
|-&lt;br /&gt;
|2:58&lt;br /&gt;
|I don’t even need to explain it but anyway.&lt;br /&gt;
|-&lt;br /&gt;
|3:01&lt;br /&gt;
|This is &amp;quot;include a file which doesn’t even exist&amp;quot; named as &amp;quot;idontexist dot php&amp;quot;. &lt;br /&gt;
|-&lt;br /&gt;
|3:08&lt;br /&gt;
|So lets have a look. Um.. where is it? &amp;quot;missing dot php&amp;quot;. &lt;br /&gt;
|-&lt;br /&gt;
|3:12&lt;br /&gt;
|Oh no! Its not.  &amp;quot;open dot php&amp;quot;. &lt;br /&gt;
|-&lt;br /&gt;
|3:14&lt;br /&gt;
|Okay! So - include &amp;quot;idontexist dot php&amp;quot; failed to open stream; no such file or directory in that name here.&lt;br /&gt;
|-&lt;br /&gt;
|3:25&lt;br /&gt;
|Our file name and directory on line 3.&lt;br /&gt;
|-&lt;br /&gt;
|3:29&lt;br /&gt;
|So lets come to line 3.&lt;br /&gt;
|-&lt;br /&gt;
|3:30&lt;br /&gt;
|And that is the only line of significant code in this file.&lt;br /&gt;
|-&lt;br /&gt;
|3:34&lt;br /&gt;
|We have another warning here - Failed to open &amp;quot;idontexist dot php&amp;quot; for inclusion and all of this.  So we get two errors. &lt;br /&gt;
|-&lt;br /&gt;
|3:43&lt;br /&gt;
|This is quite messy when you have a page that has &amp;quot;include a header file&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|3:52&lt;br /&gt;
|Then these don’t look too nice. I mean you have probably been in a website before and you have seen this at the top. &lt;br /&gt;
|-&lt;br /&gt;
|3:55&lt;br /&gt;
|You need to be attractive.  So you can put a &amp;quot;@ (at)&amp;quot; symbol in front and refresh.&lt;br /&gt;
|-&lt;br /&gt;
|4:00&lt;br /&gt;
|That won't show the error anymore. &lt;br /&gt;
|-&lt;br /&gt;
|4:03&lt;br /&gt;
|But it doesn’t excuse the fact that the file doesn’t exist.&lt;br /&gt;
|-&lt;br /&gt;
|4:06&lt;br /&gt;
|So the content of the file which doesn’t exist, won’t be included. &lt;br /&gt;
|-&lt;br /&gt;
|4:12&lt;br /&gt;
|But yes, to be honest, looking at this, this is really pretty much self explanatory.  I just thought I should explain this anyways.&lt;br /&gt;
|-&lt;br /&gt;
|4:23&lt;br /&gt;
|So we have got a small collection of errors that you might come across when you are programming in php. &lt;br /&gt;
|-&lt;br /&gt;
|4:30&lt;br /&gt;
|If there are other errors that you are getting, then please message me and I will be happy to help. &lt;br /&gt;
|-&lt;br /&gt;
|4:39&lt;br /&gt;
|Please subscribe for latest updates. Thanks for watching. This is Evan Varkey dubbing for the Spoken Tutorial project.&lt;/div&gt;</summary>
		<author><name>Chandrika</name></author>	</entry>

	</feed>