<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Manuphptech's Blog</title>
	<atom:link href="http://manuphptech.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://manuphptech.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Fri, 03 Apr 2009 10:23:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='manuphptech.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Manuphptech's Blog</title>
		<link>http://manuphptech.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://manuphptech.wordpress.com/osd.xml" title="Manuphptech&#039;s Blog" />
	<atom:link rel='hub' href='http://manuphptech.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Php to Oracle</title>
		<link>http://manuphptech.wordpress.com/2009/04/03/php-to-oracle/</link>
		<comments>http://manuphptech.wordpress.com/2009/04/03/php-to-oracle/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 10:14:37 +0000</pubDate>
		<dc:creator>manuphptech</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://manuphptech.wordpress.com/?p=6</guid>
		<description><![CDATA[Oracle is the most popular commercial database used with PHP. There are many ways of accessing Oracle databases in PHP. These include: * The oracle extension * The oci8 extension * PEAR DB library * ADOdb library The wide range of choices is confusing to someone just starting with Oracle and PHP. I will briefly [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manuphptech.wordpress.com&amp;blog=7095561&amp;post=6&amp;subd=manuphptech&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Oracle is the most popular commercial database used with PHP. There are many ways of accessing Oracle databases in PHP. These include:      * The oracle extension     * The oci8 extension     * PEAR DB library     * ADOdb library  The wide range of choices is confusing to someone just starting with Oracle and PHP. I will briefly summarize the differences, and show you the advantages of using ADOdb</p>
<table style="height:165px;" border="1" width="361" align="center">
<tbody>
<tr valign="top">ADOdb Example</p>
<p>In ADOdb, the above oci8 example querying the emp table could be written as:</p>
<p>include &#8220;/path/to/adodb.inc.php&#8221;;<br />
$db = NewADOConnection(&#8220;oci8&#8243;);<br />
$db-&gt;Connect($tnsName, &#8220;scott&#8221;, &#8220;tiger&#8221;);</p>
<p>$rs = $db-&gt;Execute(&#8220;select * from emp where empno&gt;:emp order by empno&#8221;,<br />
array(&#8216;emp&#8217; =&gt; 7900));<br />
while ($arr = $rs-&gt;FetchRow()) {<br />
print_r($arr);<br />
echo &#8220;</p>
<hr />&#8220;;<br />
}</p>
<td><strong>Oracle extension</strong></td>
<td>Designed for Oracle 7 or earlier. This is obsolete.</td>
</tr>
<tr valign="top">
<td><strong>Oci8 extension</strong></td>
<td>Despite it&#8217;s name, which implies it is only for Oracle 8i, this is the standard method for accessing databases running Oracle 8i, 9i or 10g (and later)</td>
</tr>
</tbody>
</table>
<p>Here is an example of using the oci8 extension to query the <em>emp</em> table of the <em>scott</em> schema with bind parameters:</p>
<p>$conn = OCILogon(&#8220;scott&#8221;,&#8221;tiger&#8221;, $tnsName);   $stmt = OCIParse($conn,&#8221;select * from emp where empno &gt; :emp order by empno&#8221;);  $emp = 7900; OCIBindByName($stmt, &#8216;:emp&#8217;, $emp); $ok = OCIExecute($stmt); while (OCIFetchInto($stmt,$arr)) { 	print_r($arr); 	echo &#8220;&lt;hr&gt;&#8221;;	 }</p>
<p>We also have  many higher level PHP libraries that allow you to simplify the above code. The most popular are <a href="http://pear.php.net/">PEAR DB</a> and <a href="http://adodb.sourceforge.net/">ADOdb</a>.  Here are some of the differences between these libraries</p>
<table border="1" width="75%" align="center">
<tbody>
<tr>
<td><strong>Feature</strong></td>
<td><strong>PEAR DB 1.6</strong></td>
<td><strong>ADOdb 4.52</strong></td>
</tr>
<tr valign="top">
<td>General Style</td>
<td>Simple, easy to use. Lacks Oracle specific functionality.</td>
<td>Has multi-tier design. Simple high-level design for beginners, and also lower-level advanced Oracle functionality.</td>
</tr>
<tr valign="top">
<td>Support for Prepare</td>
<td>Yes, but only on one statement, as the last prepare overwrites previous prepares.</td>
<td>Yes (multiple simultaneous prepare&#8217;s allowed)</td>
</tr>
<tr valign="top">
<td>Support for LOBs</td>
<td>No</td>
<td>Yes, using update semantics</td>
</tr>
<tr valign="top">
<td>Support for REF Cursors</td>
<td>No</td>
<td>Yes</td>
</tr>
<tr valign="top">
<td>Support for IN Parameters</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr valign="top">
<td>Support for OUT Parameters</td>
<td>No</td>
<td>Yes</td>
</tr>
<tr valign="top">
<td>Schema creation using XML</td>
<td>No</td>
<td>Yes, including ability to define tablespaces and constraints</td>
</tr>
<tr valign="top">
<td>Provides database portability features</td>
<td>No</td>
<td>Yes, has some ability to abstract features that differ between databases such as dates, bind parameters, and data types.</td>
</tr>
<tr valign="top">
<td>Performance monitoring and tracing</td>
<td>No</td>
<td>Yes. SQL can be traced and linked to web page it was executed on. Explain plan support included.</td>
</tr>
<tr valign="top">
<td>Recordset caching for frequently used queries</td>
<td>No</td>
<td>Yes. Provides great speedups for SQL involving complex <em>where, group-by </em>and <em>order-by</em> clauses.</td>
</tr>
<tr valign="top">
<td>Popularity</td>
<td>Yes, part of PEAR release</td>
<td>Yes, many open source projects are using this software, including PostNuke, Xaraya, Mambo, Tiki Wiki.</td>
</tr>
<tr valign="top">
<td>Speed</td>
<td>Medium speed.</td>
<td>Very high speed. Fastest database abstraction library available for PHP. <a href="http://phplens.com/lens/adodb/">Benchmarks are available</a>.</td>
</tr>
<tr valign="top">
<td>High Speed Extension available</td>
<td>No</td>
<td>Yes. You can install the optional ADOdb extension, which reimplements the most frequently used parts of ADOdb as fast C code. Note that the source code version of ADOdb runs just fine without this extension, and only makes use of the extension if detected.</td>
</tr>
</tbody>
</table>
<p>ADOdb Example</p>
<p>In ADOdb, the above oci8 example querying the emp table could be written as:</p>
<p>include &#8220;/path/to/adodb.inc.php&#8221;;<br />
$db = NewADOConnection(&#8220;oci8&#8243;);<br />
$db-&gt;Connect($tnsName, &#8220;scott&#8221;, &#8220;tiger&#8221;);</p>
<p>$rs = $db-&gt;Execute(&#8220;select * from emp where empno&gt;:emp order by empno&#8221;,<br />
array(&#8216;emp&#8217; =&gt; 7900));<br />
while ($arr = $rs-&gt;FetchRow()) {<br />
print_r($arr);<br />
echo &#8220;</p>
<hr />&#8220;;<br />
}</p>
<p>Source :<a title="Source" href="http://phplens.com/lens/adodb/docs-oracle.htm" target="_blank"> http://phplens.com/lens/adodb/docs-oracle.htm</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/manuphptech.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/manuphptech.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/manuphptech.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/manuphptech.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/manuphptech.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/manuphptech.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/manuphptech.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/manuphptech.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/manuphptech.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/manuphptech.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/manuphptech.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/manuphptech.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/manuphptech.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/manuphptech.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manuphptech.wordpress.com&amp;blog=7095561&amp;post=6&amp;subd=manuphptech&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://manuphptech.wordpress.com/2009/04/03/php-to-oracle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e7420f8ed93ac2b08d8943d1f23f5365?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">manuphptech</media:title>
		</media:content>
	</item>
		<item>
		<title></title>
		<link>http://manuphptech.wordpress.com/2009/03/25/3/</link>
		<comments>http://manuphptech.wordpress.com/2009/03/25/3/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 04:37:07 +0000</pubDate>
		<dc:creator>manuphptech</dc:creator>
				<category><![CDATA[Certification]]></category>

		<guid isPermaLink="false">http://manuphptech.wordpress.com/?p=3</guid>
		<description><![CDATA[Syllabus of Php 5 certification Exam Information PHP Basics Syntax Operators Variables Constants Control Structures Language Constructs and Functions Functions Syntax Arguments Variables References Returns Variable Scope Arrays Enumerated Arrays Associative Arrays Array Iteration Multi-Dimensional Arrays Array Functions SPL Object Oriented Programming Instantiation Modifiers/Inheritance Interfaces Exceptions Static Methods &#38; Properties Autoload Reflection Type Hinting Class [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manuphptech.wordpress.com&amp;blog=7095561&amp;post=3&amp;subd=manuphptech&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Syllabus of Php 5 certification</strong></p>
<h2>Exam Information</h2>
<div class="col3-set">
<div class="col-1">
<div class="content-col">
<p><strong>PHP Basics</strong></p>
<ul>
<li>Syntax</li>
<li>Operators</li>
<li>Variables</li>
<li>Constants</li>
<li>Control Structures</li>
<li>Language Constructs and Functions</li>
</ul>
</div>
</div>
<div class="col-2">
<div class="content-col">
<p><strong>Functions</strong></p>
<ul>
<li>Syntax</li>
<li>Arguments</li>
<li>Variables</li>
<li>References</li>
<li>Returns</li>
<li>Variable Scope</li>
</ul>
</div>
</div>
<div class="col-3">
<div class="content-col">
<p><strong>Arrays</strong></p>
<ul>
<li>Enumerated Arrays</li>
<li>Associative Arrays</li>
<li>Array Iteration</li>
<li>Multi-Dimensional Arrays</li>
<li>Array Functions</li>
<li>SPL</li>
</ul>
</div>
</div>
</div>
<div class="col3-set">
<div class="col-1">
<div class="content-col">
<p><strong>Object Oriented Programming</strong></p>
<ul>
<li>Instantiation</li>
<li>Modifiers/Inheritance</li>
<li>Interfaces</li>
<li>Exceptions</li>
<li>Static Methods &amp; Properties</li>
<li>Autoload</li>
<li>Reflection</li>
<li>Type Hinting</li>
<li>Class Constants</li>
</ul>
<div class="col3-set">
<div class="col-1">
<div class="content-col">
<p><strong>Strings and Patterns</strong></p>
<ul>
<li>Quoting</li>
<li>Matching</li>
<li>Extracting</li>
<li>Searching</li>
<li>Replacing</li>
<li>Formatting</li>
<li>PCRE</li>
</ul>
</div>
</div>
<div class="col-2">
<div class="content-col">
<p><strong>Databases and SQL</strong></p>
<ul>
<li>SQL</li>
<li>Joins</li>
<li>Analyzing Queries</li>
<li>Prepared Statements</li>
<li>Transactions</li>
</ul>
</div>
</div>
<div class="col-3">
<div class="content-col">
<p><strong>Web Features</strong></p>
<ul>
<li>Sessions</li>
<li>Forms</li>
<li>GET and POST data</li>
<li>Cookies</li>
<li>HTTP Headers</li>
</ul>
</div>
</div>
</div>
<div class="col3-set">
<div class="col-1">
<div class="content-col">
<p><strong>Streams and Network Programming</strong></p>
<ul>
<li>Files</li>
<li>Reading</li>
<li>Writing</li>
<li>File System Functions</li>
<li>Streams</li>
</ul>
</div>
</div>
<div class="col-2">
<div class="content-col">
<p><strong>PHP 4/5 Differences</strong></p>
<ul>
<li>Object Orientation</li>
<li>E_STRICT</li>
<li>References vs. Object Handles</li>
</ul>
</div>
</div>
<div class="col-3">
<div class="content-col">
<p><strong>Design and Theory</strong></p>
<ul>
<li>IDesign Patterns</li>
<li>Code Reuse</li>
<li>OOP Theory</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/manuphptech.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/manuphptech.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/manuphptech.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/manuphptech.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/manuphptech.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/manuphptech.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/manuphptech.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/manuphptech.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/manuphptech.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/manuphptech.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/manuphptech.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/manuphptech.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/manuphptech.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/manuphptech.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manuphptech.wordpress.com&amp;blog=7095561&amp;post=3&amp;subd=manuphptech&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://manuphptech.wordpress.com/2009/03/25/3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e7420f8ed93ac2b08d8943d1f23f5365?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">manuphptech</media:title>
		</media:content>
	</item>
	</channel>
</rss>
