<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Zend PHP5 certification Exam study review 11: supplementary II</title>
	<atom:link href="http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/feed/langswitch_lang/en/" rel="self" type="application/rss+xml" />
	<link>http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/</link>
	<description>PHP, CSS, Ajax, webdevelop and everything else.</description>
	<lastBuildDate>Sun, 14 Feb 2010 11:30:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: john smith</title>
		<link>http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/comment-page-1/#comment-3048</link>
		<dc:creator>john smith</dc:creator>
		<pubDate>Wed, 03 Feb 2010 13:02:39 +0000</pubDate>
		<guid isPermaLink="false">http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/#comment-3048</guid>
		<description>Hello 

I am prepareing ZCE. Anybody can the answer of the following question 

when working with a database which of the following can be used to mitigate the possiblilty of exposing your database credientials to malicious user 
(1) Moving all database into single file
(2) Moving all database credentials outside of the document root
(3) Restricting access to files not designed to be executed independently
(4) Setting credential information as system enviorment variable
(5) Using php constants instead of variables to store credentials</description>
		<content:encoded><![CDATA[<p>Hello </p>
<p>I am prepareing ZCE. Anybody can the answer of the following question </p>
<p>when working with a database which of the following can be used to mitigate the possiblilty of exposing your database credientials to malicious user<br />
(1) Moving all database into single file<br />
(2) Moving all database credentials outside of the document root<br />
(3) Restricting access to files not designed to be executed independently<br />
(4) Setting credential information as system enviorment variable<br />
(5) Using php constants instead of variables to store credentials</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Drunk Naked Bachelorettes</title>
		<link>http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/comment-page-1/#comment-2712</link>
		<dc:creator>Drunk Naked Bachelorettes</dc:creator>
		<pubDate>Tue, 04 Aug 2009 05:56:20 +0000</pubDate>
		<guid isPermaLink="false">http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/#comment-2712</guid>
		<description>ehh.. really like it.</description>
		<content:encoded><![CDATA[<p>ehh.. really like it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yahav</title>
		<link>http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/comment-page-1/#comment-2704</link>
		<dc:creator>Yahav</dc:creator>
		<pubDate>Wed, 08 Jul 2009 12:10:18 +0000</pubDate>
		<guid isPermaLink="false">http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/#comment-2704</guid>
		<description>That is a good article.
but for my knolage, in the &quot;binary safe compare&quot; there is === ans strcmp (i answerd on the exam too... i going to do it tomorow becuse of that i looked for reviews and you helped me alot :) )</description>
		<content:encoded><![CDATA[<p>That is a good article.<br />
but for my knolage, in the &#8220;binary safe compare&#8221; there is === ans strcmp (i answerd on the exam too&#8230; i going to do it tomorow becuse of that i looked for reviews and you helped me alot <img src='http://readtheweb.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/comment-page-1/#comment-1587</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 30 Jan 2009 09:10:50 +0000</pubDate>
		<guid isPermaLink="false">http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/#comment-1587</guid>
		<description>Karol, after checked the php.net, I agree. Thanks. :)</description>
		<content:encoded><![CDATA[<p>Karol, after checked the php.net, I agree. Thanks. <img src='http://readtheweb.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karol</title>
		<link>http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/comment-page-1/#comment-1580</link>
		<dc:creator>Karol</dc:creator>
		<pubDate>Thu, 15 Jan 2009 22:54:11 +0000</pubDate>
		<guid isPermaLink="false">http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/#comment-1580</guid>
		<description>I think that tmpfile() is better than tempnam() in this case.

Cheers!

PS
This blog is realy great job! It helped me to organize my knowlege a lot</description>
		<content:encoded><![CDATA[<p>I think that tmpfile() is better than tempnam() in this case.</p>
<p>Cheers!</p>
<p>PS<br />
This blog is realy great job! It helped me to organize my knowlege a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/comment-page-1/#comment-1576</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 08 Jan 2009 06:38:11 +0000</pubDate>
		<guid isPermaLink="false">http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/#comment-1576</guid>
		<description>Hi, Mike. As all of us knew, I actually don&#039;t know the &quot;real right&quot; answer for any exam question. But, I just do my best to get the most correct information.
Why I think the $params[&#039;notification&#039;]  is the &quot;context variable&quot;? Well, you can go through three pages on the php,net:

http://cn.php.net/manual/en/function.stream-notification-callback.php
There is a link to the &quot;notification context parameter&quot; on above page.

http://cn.php.net/manual/en/context.params.php#context.params.notification
Then there is a link to the stream_context_set_params() function.

http://cn.php.net/manual/en/function.stream-context-set-params.php

And there is a table of &quot;Supported parameters&quot; for the $params array. The first row of the table is about the &quot;$params[&#039;notification&#039;]&quot;.

Do you think I got it right?</description>
		<content:encoded><![CDATA[<p>Hi, Mike. As all of us knew, I actually don&#8217;t know the &#8220;real right&#8221; answer for any exam question. But, I just do my best to get the most correct information.<br />
Why I think the $params['notification']  is the &#8220;context variable&#8221;? Well, you can go through three pages on the php,net:</p>
<p><a href="http://cn.php.net/manual/en/function.stream-notification-callback.php" rel="nofollow">http://cn.php.net/manual/en/function.stream-notification-callback.php</a><br />
There is a link to the &#8220;notification context parameter&#8221; on above page.</p>
<p><a href="http://cn.php.net/manual/en/context.params.php#context.params.notification" rel="nofollow">http://cn.php.net/manual/en/context.params.php#context.params.notification</a><br />
Then there is a link to the stream_context_set_params() function.</p>
<p><a href="http://cn.php.net/manual/en/function.stream-context-set-params.php" rel="nofollow">http://cn.php.net/manual/en/function.stream-context-set-params.php</a></p>
<p>And there is a table of &#8220;Supported parameters&#8221; for the $params array. The first row of the table is about the &#8220;$params['notification']&#8220;.</p>
<p>Do you think I got it right?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/comment-page-1/#comment-1575</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Sun, 28 Dec 2008 19:22:07 +0000</pubDate>
		<guid isPermaLink="false">http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/#comment-1575</guid>
		<description>&quot;The $params[&#039;notification&#039;] context variable allows you to define a callback for the stream that will notify your script of certain events during the course of the transaction.&quot;

Can you provide some references to this that support your answer? I have been unable to find the answer to this question, nor have I been able to find anything that uses $params[&#039;notification&#039;].

Thanks!</description>
		<content:encoded><![CDATA[<p>&#8220;The $params['notification'] context variable allows you to define a callback for the stream that will notify your script of certain events during the course of the transaction.&#8221;</p>
<p>Can you provide some references to this that support your answer? I have been unable to find the answer to this question, nor have I been able to find anything that uses $params['notification'].</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to preapre for Zend PHP5 Certification Exam &#171; Saidur Rahman Bijon</title>
		<link>http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/comment-page-1/#comment-1499</link>
		<dc:creator>How to preapre for Zend PHP5 Certification Exam &#171; Saidur Rahman Bijon</dc:creator>
		<pubDate>Fri, 05 Dec 2008 16:00:22 +0000</pubDate>
		<guid isPermaLink="false">http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/#comment-1499</guid>
		<description>[...] n http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/ [...]</description>
		<content:encoded><![CDATA[<p>[...] n <a href="http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/" rel="nofollow">http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/comment-page-1/#comment-1451</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 07 Oct 2008 13:39:12 +0000</pubDate>
		<guid isPermaLink="false">http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/#comment-1451</guid>
		<description>tjmcd1963, I knew what you mean. I think, maybe in the case that you want to test if a class is a singleton? E.g.:

$a = new ForeignClass();
$b = new ForeignClass();
if($a === $b) {echo &quot;It is a singleton.&quot;;} else{echo &quot;It is not a singleton.&quot;;}

Of coures, in the real world, this is a very rare scenario, even you got a class from somewhere, and it was not documented and has no comment, you can always check the source code of the Class right? But I also can&#039;t think another example in the real world right now. But, this is may useful in large project, and you use $a=$b; but after pass $a and $b around, in some places, you forgot you used this stating or it is just another person on the project, so use if($a===$b).
P.S., I think &quot;the same instance of an object&quot; is actually &quot;the same instance of an class&quot;. The question itself seem has a problem.</description>
		<content:encoded><![CDATA[<p>tjmcd1963, I knew what you mean. I think, maybe in the case that you want to test if a class is a singleton? E.g.:</p>
<p>$a = new ForeignClass();<br />
$b = new ForeignClass();<br />
if($a === $b) {echo &#8220;It is a singleton.&#8221;;} else{echo &#8220;It is not a singleton.&#8221;;}</p>
<p>Of coures, in the real world, this is a very rare scenario, even you got a class from somewhere, and it was not documented and has no comment, you can always check the source code of the Class right? But I also can&#8217;t think another example in the real world right now. But, this is may useful in large project, and you use $a=$b; but after pass $a and $b around, in some places, you forgot you used this stating or it is just another person on the project, so use if($a===$b).<br />
P.S., I think &#8220;the same instance of an object&#8221; is actually &#8220;the same instance of an class&#8221;. The question itself seem has a problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/comment-page-1/#comment-1450</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 07 Oct 2008 13:32:57 +0000</pubDate>
		<guid isPermaLink="false">http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/#comment-1450</guid>
		<description>Hi Alexey, you are right. My answers were wrong, it should use unset. Actually, I knew they are wrong a long time ago; I forgot to correct it. And, later, I thought, maybe just keep it as is. I never said that all these here are the &quot;correct answers&quot; :). Thank you very much for your this comments!</description>
		<content:encoded><![CDATA[<p>Hi Alexey, you are right. My answers were wrong, it should use unset. Actually, I knew they are wrong a long time ago; I forgot to correct it. And, later, I thought, maybe just keep it as is. I never said that all these here are the &#8220;correct answers&#8221; <img src='http://readtheweb.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . Thank you very much for your this comments!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexey</title>
		<link>http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/comment-page-1/#comment-1449</link>
		<dc:creator>Alexey</dc:creator>
		<pubDate>Tue, 07 Oct 2008 08:18:52 +0000</pubDate>
		<guid isPermaLink="false">http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/#comment-1449</guid>
		<description>Hi!
On question
&quot;To destroy one variable within a PHP session you should use which method in PHP 5?&quot;
you answered
session_destroy(); session_regenerate_id();
Why? To destroy ONE variable you should use unset() method, like unset ($_SESSION[&#039;var&#039;])
P.S. Thank you for interesting article</description>
		<content:encoded><![CDATA[<p>Hi!<br />
On question<br />
&#8220;To destroy one variable within a PHP session you should use which method in PHP 5?&#8221;<br />
you answered<br />
session_destroy(); session_regenerate_id();<br />
Why? To destroy ONE variable you should use unset() method, like unset ($_SESSION['var'])<br />
P.S. Thank you for interesting article</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tjmcd1963</title>
		<link>http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/comment-page-1/#comment-1448</link>
		<dc:creator>tjmcd1963</dc:creator>
		<pubDate>Mon, 06 Oct 2008 15:17:54 +0000</pubDate>
		<guid isPermaLink="false">http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/#comment-1448</guid>
		<description>Here, $a and $b are not the same instance of an object, they are two different instance of the same class, eventhough the if statement will return true...

Ok, I see your point there, but without simply stating that $a=$b; can you provide a simple example wherein $a and $b would in fact be &quot;the same instance of an object&quot; never mind where $a and $b &quot;contain&quot; the same instance? I confess that I am having some difficulty imagining such a scenario in the real world.</description>
		<content:encoded><![CDATA[<p>Here, $a and $b are not the same instance of an object, they are two different instance of the same class, eventhough the if statement will return true&#8230;</p>
<p>Ok, I see your point there, but without simply stating that $a=$b; can you provide a simple example wherein $a and $b would in fact be &#8220;the same instance of an object&#8221; never mind where $a and $b &#8220;contain&#8221; the same instance? I confess that I am having some difficulty imagining such a scenario in the real world.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/comment-page-1/#comment-1447</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sun, 05 Oct 2008 06:30:16 +0000</pubDate>
		<guid isPermaLink="false">http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/#comment-1447</guid>
		<description>Yeah, from the manual, it says instanceof can also used with another object or a string variable. However, look at the example#5 on php.net, the use of another object example is:
$a = new MyClass;
$b =new MyClass;
if($a instanceof $b)...

Here, $a and $b are not the same instance of an object, they are two different instance of the same class, eventhough the if statement will return true.</description>
		<content:encoded><![CDATA[<p>Yeah, from the manual, it says instanceof can also used with another object or a string variable. However, look at the example#5 on php.net, the use of another object example is:<br />
$a = new MyClass;<br />
$b =new MyClass;<br />
if($a instanceof $b)&#8230;</p>
<p>Here, $a and $b are not the same instance of an object, they are two different instance of the same class, eventhough the if statement will return true.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tjmcd1963</title>
		<link>http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/comment-page-1/#comment-1444</link>
		<dc:creator>tjmcd1963</dc:creator>
		<pubDate>Sat, 04 Oct 2008 16:24:59 +0000</pubDate>
		<guid isPermaLink="false">http://readtheweb.info/2008/01/24/zend-php5-certification-exam-study-review-11-supplementary-ii/#comment-1444</guid>
		<description>When checking to see if two variables contain the same instance of an object, which of the following comparisons should be used? 
  if($obj1 === $obj2)  // ??? are you sure it&#039;s not...
if($obj1 instanceof $obj2) // ???
e.g. (from the manual)...
&quot;Although instanceof is usually used with a literal classname, it can also be used with another object or a string variable:&quot;


if($a instanceof $b) echo &quot;foo&quot;;
if($a === $b) echo &quot;bar&quot;;
//returns foo</description>
		<content:encoded><![CDATA[<p>When checking to see if two variables contain the same instance of an object, which of the following comparisons should be used?<br />
  if($obj1 === $obj2)  // ??? are you sure it&#8217;s not&#8230;<br />
if($obj1 instanceof $obj2) // ???<br />
e.g. (from the manual)&#8230;<br />
&#8220;Although instanceof is usually used with a literal classname, it can also be used with another object or a string variable:&#8221;</p>
<p>if($a instanceof $b) echo &#8220;foo&#8221;;<br />
if($a === $b) echo &#8220;bar&#8221;;<br />
//returns foo</p>
]]></content:encoded>
	</item>
</channel>
</rss>
