<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PHP Interview Questions and answers&#187; PHP Questions archives  &#8211; interview questions and answers</title>
	<atom:link href="http://www.phpinterviewquestions.com/tag/php-interview-questions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpinterviewquestions.com</link>
	<description>Prepare for your next php based interview with high confidence</description>
	<lastBuildDate>Mon, 26 Sep 2011 08:37:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Explain abstract class and its behaviour?</title>
		<link>http://www.phpinterviewquestions.com/php-interview-questions/explain-abstract-class-and-its-behaviour/</link>
		<comments>http://www.phpinterviewquestions.com/php-interview-questions/explain-abstract-class-and-its-behaviour/#comments</comments>
		<pubDate>Tue, 08 Feb 2011 06:34:10 +0000</pubDate>
		<dc:creator>Bart</dc:creator>
				<category><![CDATA[Expert level]]></category>
		<category><![CDATA[PHP Questions]]></category>
		<category><![CDATA[oop]]></category>

		<guid isPermaLink="false">http://www.phpinterviewquestions.com/?p=453</guid>
		<description><![CDATA[Abstract class is defined as a solitary entity, so other classes can inherit from it. An abstractÂ  class can not be instantiated, only the subclasses of it can have instances. Following is one of the best examples to explain the use of an abstract class and the behavior of it.

 class Fruit {
 private $color;

 [...]]]></description>
			<content:encoded><![CDATA[<p>Abstract class is defined as a solitary entity, so other classes can inherit from it. An abstractÂ  class can not be instantiated, only the subclasses of it can have instances. Following is one of the best examples to explain the use of an abstract class and the behavior of it.</p>
<pre class="brush: php;">
 class Fruit {
 private $color;

 public function eat() {
  //chew
 }

  public function setColor($c) {
   $this-&gt;color = $c;
  }
 }

 class Apple extends Fruit {
  public function eat() {
   //chew until core
  }
 }

 class Orange extends Fruit {
  public function eat() {
   //peel
   //chew
  }
 }
</pre>
<p>Now taste an apple</p>
<pre class="brush: php;">
$apple = new Apple();
$apple-&gt;eat();
</pre>
<p>What&#8217;s the taste of it? Obviously it&#8217;s apple</p>
<p>Now eat a fruit</p>
<pre class="brush: php;">
$fruit = new Fruit();
$fruit-&gt;eat();
</pre>
<p>What&#8217;s the taste of it? It doesn&#8217;t make any sense. does it? Which means the class fruit should not be Instantiable . This is where the abstract class comes into play</p>
<pre class="brush: php;">
abstract class Fruit {
 private $color;

 abstract public function eat()

 public function setColor($c) {
  $this-&gt;color = $c;
 }
}
</pre>
<p><script type="text/javascript"><!--
google_ad_client = "pub-8695027799979044";
/* 336x280, created 3/4/10 */
google_ad_slot = "4291231574";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpinterviewquestions.com/php-interview-questions/explain-abstract-class-and-its-behaviour/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>back to the basics</title>
		<link>http://www.phpinterviewquestions.com/php-interview-questions/back-to-the-basics/</link>
		<comments>http://www.phpinterviewquestions.com/php-interview-questions/back-to-the-basics/#comments</comments>
		<pubDate>Fri, 27 Aug 2010 10:38:24 +0000</pubDate>
		<dc:creator>Bart</dc:creator>
				<category><![CDATA[PHP Questions]]></category>
		<category><![CDATA[basics]]></category>

		<guid isPermaLink="false">http://www.phpinterviewquestions.com/?p=363</guid>
		<description><![CDATA[



This is just a quick note about how you must prepare for your technical interview whether it&#8217;s a face to face or a written.
Before you prepare for a technical interview you must re-work on your basics in the first place. if you are not sure enough don&#8217;t go to the interview. Prepare well for your [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-8695027799979044";
/* 336x280, created 3/4/10 */
google_ad_slot = "4291231574";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>This is just a quick note about how you must prepare for your technical interview whether it&#8217;s a face to face or a written.<br />
Before you prepare for a technical interview you must re-work on your basics in the first place. if you are not sure enough don&#8217;t go to the interview. Prepare well for your next interview. It will help you a lotÂ  <img src='http://www.phpinterviewquestions.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>For an instance at least work on following aspects,</p>
<ul>
<li><strong>Client Server</strong>Â  &#8211; &gt; What is client server architecture? Basic requesting methods to the server?</li>
<li><strong>Sessions</strong>Â  -&gt; What is a session? Where sessions are stored? How session reference is carried in the browser(client) side?</li>
<li><strong>OOP</strong>Â Â Â Â  -&gt; What is a class? what is overloading? what is overriding and how you do these with examples?</li>
<li><strong>XML</strong>Â Â Â  -&gt; What is xml? and what&#8217;s the use of it?</li>
<li><strong>AJAX</strong> -&gt; What is ajax? if you use 3rd party tool at least know the basic functions.</li>
<li><strong>Frameworks</strong> &#8211; &gt; Design patterns used? MVC? Explain cakephp, zend etc</li>
<li><strong>CMS</strong>-&gt; At least the knowledge of integrating a template. Joomla, Drupal, Magento</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.phpinterviewquestions.com/php-interview-questions/back-to-the-basics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oral php interview questions</title>
		<link>http://www.phpinterviewquestions.com/php-interview-questions/oral-php-interview-questions/</link>
		<comments>http://www.phpinterviewquestions.com/php-interview-questions/oral-php-interview-questions/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 10:39:12 +0000</pubDate>
		<dc:creator>Bart</dc:creator>
				<category><![CDATA[PHP Questions]]></category>
		<category><![CDATA[cookies]]></category>
		<category><![CDATA[interviews]]></category>
		<category><![CDATA[oop]]></category>
		<category><![CDATA[sessions]]></category>

		<guid isPermaLink="false">http://www.phpinterviewquestions.com/?p=334</guid>
		<description><![CDATA[



Here is a list of php question areas that might be asked in an add-hoc oral technical interview.
First of all they will focus on some more basic questions,
- Difference between GET and POST
- Echo and print
- Language constructors and so on&#8230;
Then most likely they would focus on,
- The behaviors of sessions and cookies
- Ways of [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-8695027799979044";
/* 336x280, created 3/4/10 */
google_ad_slot = "4291231574";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>Here is a list of php question areas that might be asked in an add-hoc oral technical interview.</p>
<p>First of all they will focus on some more basic questions,<br />
- Difference between GET and POST<br />
- Echo and print<br />
- Language constructors and so on&#8230;</p>
<p>Then most likely they would focus on,<br />
- The behaviors of sessions and cookies<br />
- Ways of a session ID can be passed<br />
- Db connection strings and how can it be centralized and stuff like that.<br />
- Difference between normal connection and a persistent connection etc..</p>
<p>Then obviously the interviewer will have to asses on your knowledge in Object Oriented Programming techniques,<br />
- Simply what is a class or object?<br />
- Some definitions on OOP techniques like, Encapsulation, overloading, inheritance.</p>
<p>Also design pattern questions will be asked here.<br />
- Which OOP pattern implements a class that must be instantiated only once in a life span of a script?<br />
- Some more questions on design patterns mostly real world scenarios.<br />
- How design patterns can be used as a mix of more than one pattern?<br />
- Some more discussions related to MVC, Abstract factory, and singleton.</p>
<p>Last but not least they will focus on your knowledge about the security issues, best practices, probably about register global issues and so on. Then the interviewers will focus on more into your CV and about the Frameworks and CMS&#8217;s you have been exposed to.</p>
<p>We will be discussing all of above points one by one in later posts stay tuned.</p>
<p>Cheers !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpinterviewquestions.com/php-interview-questions/oral-php-interview-questions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blue print of an object</title>
		<link>http://www.phpinterviewquestions.com/php-interview-questions/blue-print-of-an-object-php/</link>
		<comments>http://www.phpinterviewquestions.com/php-interview-questions/blue-print-of-an-object-php/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 12:02:36 +0000</pubDate>
		<dc:creator>Bart</dc:creator>
				<category><![CDATA[PHP Questions]]></category>
		<category><![CDATA[Regular level]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[oop]]></category>

		<guid isPermaLink="false">http://www.phpinterviewquestions.com/?p=324</guid>
		<description><![CDATA[What is the construct used to define the blueprint of an object called?
A class is a blueprint of an object, which is an instance of a class. 




]]></description>
			<content:encoded><![CDATA[<p>What is the construct used to define the blueprint of an object called?</p>
<p>A class is a blueprint of an object, which is an instance of a class. </p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-8695027799979044";
/* 468x15, created 4/16/10 */
google_ad_slot = "1994287074";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpinterviewquestions.com/php-interview-questions/blue-print-of-an-object-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>heredoc syntax</title>
		<link>http://www.phpinterviewquestions.com/php-interview-questions/heredoc-syntax/</link>
		<comments>http://www.phpinterviewquestions.com/php-interview-questions/heredoc-syntax/#comments</comments>
		<pubDate>Tue, 18 May 2010 00:28:50 +0000</pubDate>
		<dc:creator>Bart</dc:creator>
				<category><![CDATA[Advanced level]]></category>
		<category><![CDATA[PHP Questions]]></category>
		<category><![CDATA[Strings]]></category>
		<category><![CDATA[syntax]]></category>

		<guid isPermaLink="false">http://www.phpinterviewquestions.com/?p=256</guid>
		<description><![CDATA[&#8220;heredoc&#8221; syntax can be used to declare complex strings,
What will out put the following code snippet?
&#60;?php
$who = &#34;questions&#34;;
echo &#60;&#60;&#60;TEXT
So I said, &#34;php interview $who&#34;
TEXT;
?&#62;
Answer &#8211; So I said, &#8220;php interview questions&#8221;
In general, the functionality of this heredoc syntax is similar to double quotes. 




]]></description>
			<content:encoded><![CDATA[<p>&#8220;heredoc&#8221; syntax can be used to declare complex strings,</p>
<p>What will out put the following code snippet?</p>
<pre class="brush: php;">&lt;?php
$who = &quot;questions&quot;;
echo &lt;&lt;&lt;TEXT
So I said, &quot;php interview $who&quot;
TEXT;
?&gt;</pre>
<p>Answer &#8211; So I said, &#8220;php interview questions&#8221;</p>
<p>In general, the functionality of this heredoc syntax is similar to double quotes. </p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-8695027799979044";
/* 468x15, created 4/16/10 */
google_ad_slot = "1994287074";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpinterviewquestions.com/php-interview-questions/heredoc-syntax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>variable interpolation</title>
		<link>http://www.phpinterviewquestions.com/php-interview-questions/variable-interpolation/</link>
		<comments>http://www.phpinterviewquestions.com/php-interview-questions/variable-interpolation/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 13:35:28 +0000</pubDate>
		<dc:creator>Bart</dc:creator>
				<category><![CDATA[PHP Questions]]></category>
		<category><![CDATA[Regular level]]></category>
		<category><![CDATA[Strings]]></category>

		<guid isPermaLink="false">http://www.phpinterviewquestions.com/?p=223</guid>
		<description><![CDATA[



Using variable interpolation how we can print the following String?
&#8220;I am visiting the php interview questions website&#8221;.
The word &#8220;question&#8221; is inside a variable,
$a = &#8216;question&#8217;;
Answer is just,
echo &#8220;I am visiting the php interview {$a}s website&#8221;;




]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-8695027799979044";
/* 468x15, created 4/16/10 */
google_ad_slot = "1994287074";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
Using variable interpolation how we can print the following String?</p>
<p><strong>&#8220;I am visiting the php interview questions website&#8221;</strong>.<br />
The word &#8220;question&#8221; is inside a variable,<br />
$a = &#8216;question&#8217;;</p>
<p>Answer is just,<br />
echo &#8220;I am visiting the php interview {$a}s website&#8221;;</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-8695027799979044";
/* 336x280, created 3/4/10 */
google_ad_slot = "4291231574";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpinterviewquestions.com/php-interview-questions/variable-interpolation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>strings and variable interpolation</title>
		<link>http://www.phpinterviewquestions.com/php-interview-questions/strings-and-variable-interpolation/</link>
		<comments>http://www.phpinterviewquestions.com/php-interview-questions/strings-and-variable-interpolation/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 13:00:46 +0000</pubDate>
		<dc:creator>Bart</dc:creator>
				<category><![CDATA[Advanced level]]></category>
		<category><![CDATA[PHP Questions]]></category>
		<category><![CDATA[Strings]]></category>

		<guid isPermaLink="false">http://www.phpinterviewquestions.com/?p=221</guid>
		<description><![CDATA[Basically there are 2 methods how we can define strings,
- Simple strings
- Complex strings
In a php interview, even a well experienced php programmer might forget how this works,
For an example,
a) echo &#8220;Hello $what\n&#8221;;
b) echo &#8216;Hello $what\n&#8217;;
$what = &#8220;World&#8221;;
Which will print correctly in to the browser as &#8220;Hello World&#8221; followed by a new line.
Is it a) [...]]]></description>
			<content:encoded><![CDATA[<p>Basically there are 2 methods how we can define strings,<br />
- Simple strings<br />
- Complex strings</p>
<p>In a php interview, even a well experienced php programmer might forget how this works,<br />
For an example,<br />
<strong>a) echo &#8220;Hello $what\n&#8221;;<br />
b) echo &#8216;Hello $what\n&#8217;;</strong><br />
$what = &#8220;World&#8221;;</p>
<p>Which will print correctly in to the browser as &#8220;Hello World&#8221; followed by a new line.<br />
Is it a) or b) ?<br />
<script type="text/javascript"><!--
google_ad_client = "pub-8695027799979044";
/* 468x15, created 4/16/10 */
google_ad_slot = "1994287074";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>The answer is &#8220;a&#8221;. That is because simple string will print almost all characters literally, where complex string allows special escape sequences to insert special characters.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-8695027799979044";
/* 336x280, created 3/4/10 */
google_ad_slot = "4291231574";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpinterviewquestions.com/php-interview-questions/strings-and-variable-interpolation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP frame work and cms</title>
		<link>http://www.phpinterviewquestions.com/cms-interview-questions/php-frame-work-and-cms/</link>
		<comments>http://www.phpinterviewquestions.com/cms-interview-questions/php-frame-work-and-cms/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 00:59:36 +0000</pubDate>
		<dc:creator>Bart</dc:creator>
				<category><![CDATA[CMS Questions]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[PHP Questions]]></category>
		<category><![CDATA[zend]]></category>

		<guid isPermaLink="false">http://www.phpinterviewquestions.com/?p=166</guid>
		<description><![CDATA[PHP frame works and cms's]]></description>
			<content:encoded><![CDATA[<p>Name 2 well known frame works and content management solutions(cms) usedÂ  in php web development?</p>
<p>Frameworks &#8211; <strong>Zend Framework, cakephp</strong></p>
<p>CMS&#8217;s &#8211; <strong>Drupal, joomla, wordpress</strong></p>
<p>(wordpress is acutally a blog / CMS).</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-8695027799979044";
/* 468x15, created 4/16/10 */
google_ad_slot = "1994287074";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpinterviewquestions.com/cms-interview-questions/php-frame-work-and-cms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>function return value</title>
		<link>http://www.phpinterviewquestions.com/php-interview-questions/function-return-value/</link>
		<comments>http://www.phpinterviewquestions.com/php-interview-questions/function-return-value/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 12:17:30 +0000</pubDate>
		<dc:creator>Bart</dc:creator>
				<category><![CDATA[PHP Questions]]></category>
		<category><![CDATA[Regular level]]></category>
		<category><![CDATA[functions]]></category>

		<guid isPermaLink="false">http://www.phpinterviewquestions.com/?p=164</guid>
		<description><![CDATA[What will be the out put of the following code snippet?
if(!r())
echo &#8216;aaa&#8217;;
else
echo &#8216;err&#8217;;
function r(){
//return 1;
}
Here you will not get a chance to execute and see what is the out put.Â  So you have to know exactly what will happen here. Probably even if you are a php pro, sometimes you might get confused here.
It will [...]]]></description>
			<content:encoded><![CDATA[<p>What will be the out put of the following code snippet?<strong><br />
if(!r())<br />
echo &#8216;aaa&#8217;;<br />
else<br />
echo &#8216;err&#8217;;</strong></p>
<p><strong>function r(){<br />
//return 1;<br />
}</strong></p>
<p>Here you will not get a chance to execute and see what is the out put.Â  So you have to know exactly what will happen here. Probably even if you are a php pro, sometimes you might get confused here.<br />
It will print &#8220;aaa&#8221;, even though the function do not return anything.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-8695027799979044";
/* 468x15, created 4/16/10 */
google_ad_slot = "1994287074";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpinterviewquestions.com/php-interview-questions/function-return-value/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Form Hijacking</title>
		<link>http://www.phpinterviewquestions.com/php-interview-questions/php-form-hijacking/</link>
		<comments>http://www.phpinterviewquestions.com/php-interview-questions/php-form-hijacking/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 17:44:42 +0000</pubDate>
		<dc:creator>Bart</dc:creator>
				<category><![CDATA[Advanced level]]></category>
		<category><![CDATA[PHP Questions]]></category>
		<category><![CDATA[hijacking]]></category>
		<category><![CDATA[sql injections]]></category>

		<guid isPermaLink="false">http://www.phpinterviewquestions.com/?p=54</guid>
		<description><![CDATA[What are the steps that you can take to prevent form hijacking in PHP?
- Make register_globals to off to prevent Form Injection with malicious data.
- Set Error_reporting to E_ALL so that all variables will be intialized before using them.
- Practice of using htmlentities(), strip_tags(), utf8_decode() and addslashes()Â  for filtering malicious data in php
- Make practice [...]]]></description>
			<content:encoded><![CDATA[<p>What are the steps that you can take to prevent form hijacking in PHP?</p>
<p>- Make register_globals to off to prevent Form Injection with malicious data.</p>
<p>- Set Error_reporting to E_ALL so that all variables will be intialized before using them.</p>
<p>- Practice of using htmlentities(), strip_tags(), utf8_decode() and addslashes()Â  for filtering malicious data in php</p>
<p>- Make practice of using mysql_escape_string() in mysql.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-8695027799979044";
/* 468x15, created 4/16/10 */
google_ad_slot = "1994287074";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpinterviewquestions.com/php-interview-questions/php-form-hijacking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>POST and GET Methods</title>
		<link>http://www.phpinterviewquestions.com/php-interview-questions/regular-level-php-interview-questions/post-and-get-methods/</link>
		<comments>http://www.phpinterviewquestions.com/php-interview-questions/regular-level-php-interview-questions/post-and-get-methods/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 05:19:03 +0000</pubDate>
		<dc:creator>Bart</dc:creator>
				<category><![CDATA[Regular level]]></category>
		<category><![CDATA[document]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[get]]></category>
		<category><![CDATA[PHP Questions]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[request]]></category>

		<guid isPermaLink="false">http://www.phpinterviewquestions.com/wordpress/?p=4</guid>
		<description><![CDATA[Which will execute faster POST or GET?
GET transfer data to the server using URL whereas POST transfer data using form collection which is added to the request by the browser. We can send at most 1024 bytes using URL hence there is upper limit for GET method POST method can transfer large amount of data [...]]]></description>
			<content:encoded><![CDATA[<p>Which will execute faster POST or GET?</p>
<p>GET transfer data to the server using URL whereas POST transfer data using form collection which is added to the request by the browser. We can send at most 1024 bytes using URL hence there is upper limit for GET method POST method can transfer large amount of data where upper limit is imposed by web server which is about 2MB data is shown to the user in GET method.</p>
<p>Get is faster but not safe.<br />
<a href="http://www.tutorialspoint.com/php/php_get_post.htm">http://www.tutorialspoint.com/php/php_get_post.htm</a></p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-8695027799979044";
/* 468x15, created 4/16/10 */
google_ad_slot = "1994287074";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpinterviewquestions.com/php-interview-questions/regular-level-php-interview-questions/post-and-get-methods/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Server Side Sessions</title>
		<link>http://www.phpinterviewquestions.com/php-interview-questions/regular-level-php-interview-questions/php-server-side-sessions/</link>
		<comments>http://www.phpinterviewquestions.com/php-interview-questions/regular-level-php-interview-questions/php-server-side-sessions/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 05:19:03 +0000</pubDate>
		<dc:creator>Bart</dc:creator>
				<category><![CDATA[Regular level]]></category>
		<category><![CDATA[clientside]]></category>
		<category><![CDATA[PHP Questions]]></category>
		<category><![CDATA[serverside]]></category>
		<category><![CDATA[sessions]]></category>

		<guid isPermaLink="false">http://www.phpinterviewquestions.com/wordpress/?p=17</guid>
		<description><![CDATA[Where the session values are stored? Server side or client side?
Session is stored in the server side.
]]></description>
			<content:encoded><![CDATA[<p>Where the session values are stored? Server side or client side?</p>
<p>Session is stored in the server side.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpinterviewquestions.com/php-interview-questions/regular-level-php-interview-questions/php-server-side-sessions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Header Redirect</title>
		<link>http://www.phpinterviewquestions.com/php-interview-questions/regular-level-php-interview-questions/header-redirect/</link>
		<comments>http://www.phpinterviewquestions.com/php-interview-questions/regular-level-php-interview-questions/header-redirect/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 05:19:03 +0000</pubDate>
		<dc:creator>Bart</dc:creator>
				<category><![CDATA[Regular level]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[PHP Questions]]></category>
		<category><![CDATA[redirect]]></category>

		<guid isPermaLink="false">http://www.phpinterviewquestions.com/wordpress/?p=18</guid>
		<description><![CDATA[What is the PHP method used to redirect pages?
header() function.
eg:- header(&#8216;Location:interview_questions.php&#8217;)
This must be called before any output is called.
]]></description>
			<content:encoded><![CDATA[<p>What is the PHP method used to redirect pages?</p>
<p>header() function.<br />
eg:- header(&#8216;Location:interview_questions.php&#8217;)<br />
This must be called before any output is called.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpinterviewquestions.com/php-interview-questions/regular-level-php-interview-questions/header-redirect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Echo with arrays</title>
		<link>http://www.phpinterviewquestions.com/php-interview-questions/regular-level-php-interview-questions/echo-with-arrays/</link>
		<comments>http://www.phpinterviewquestions.com/php-interview-questions/regular-level-php-interview-questions/echo-with-arrays/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 10:49:03 +0000</pubDate>
		<dc:creator>Bart</dc:creator>
				<category><![CDATA[Regular level]]></category>
		<category><![CDATA[interviews]]></category>
		<category><![CDATA[PHP Questions]]></category>

		<guid isPermaLink="false">http://www.phpinterviewquestions.com/wordpress/?p=9</guid>
		<description><![CDATA[Can we use  echo to print an array?
No it is not possible.




]]></description>
			<content:encoded><![CDATA[<p>Can we use  echo to print an array?</p>
<p>No it is not possible.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-8695027799979044";
/* 336x280, created 3/4/10 */
google_ad_slot = "4291231574";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpinterviewquestions.com/php-interview-questions/regular-level-php-interview-questions/echo-with-arrays/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

