<?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>ajaxtime.com &#187; php</title>
	<atom:link href="http://www.ajaxtime.com/tag/php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ajaxtime.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 13 Apr 2010 14:41:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP PDO MySQL &#8211; Simple Example Connecting to MySQL With PDO Class</title>
		<link>http://www.ajaxtime.com/php-pdo-mysql-simple-example-connecting-to-mysql-with-pdo-class.html</link>
		<comments>http://www.ajaxtime.com/php-pdo-mysql-simple-example-connecting-to-mysql-with-pdo-class.html#comments</comments>
		<pubDate>Mon, 22 Jun 2009 02:24:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.ajaxtime.com/php-pdo-mysql-simple-example-connecting-to-mysql-with-pdo-class.html</guid>
		<description><![CDATA[
I&#8217;ll demonstrate a simple example on how to connect to MySQL using PHP&#8217;s PDO class. Just some of the benefits of PDO is that it&#8217;s fast and if you use the PDO::prepare() method it will prevent SQL injection attacks by calling the PDO::quote() method. The other pros is that there are several databases it will [...]]]></description>
			<content:encoded><![CDATA[<div id="body">
<p>I&#8217;ll demonstrate a simple example on how to connect to MySQL using PHP&#8217;s PDO class. Just some of the benefits of PDO is that it&#8217;s fast and if you use the PDO::prepare() method it will prevent SQL injection attacks by calling the PDO::quote() method. The other pros is that there are several databases it will support. So let&#8217;s dive right into the code:</p>
<p> </p>
<p><strong>Fatal Error new PDO Instance</strong></p>
<p>Just an important note that if you receive the following type of fatal error in your development environment:</p>
<p> </p>
<p>Looks pretty messy and hard to decipher. When trying to decipher error code I usually look at the first error which led me to see why it was reporting an &#8220;Unknown database&#8221; when it was existing. The extra quotes also gave me a hint as to the problem. So I concluded the problem resulted in the placement of extra quotes around the values of host and/or dbname. The following will generate the previous error:</p>
<p> </p>
<p>So if you do not use variables then do not add the single quotes for the values of host and dbname. In other words, use the following code instead:</p>
<p> </p>
<p>This is a simple test to connect to your mysql database or any other support database. Just for your information if you wish to connect to PostgreSQL which is another popular and robust database use the following code in place of the line of instantiation:</p>
<p> </p>
<p>If you&#8217;re in a development environment and wish to display your errors directly to the screen you can specify the errors displayed. You need to set your display_errors settings to &#8216;on&#8217; in your php.ini file. So set your error attributes after instantiating the PDO class like so:</p>
<p> </p>
<p>There are three types of error report settings for PDO::ATTR_ERRMODE:<br />
PDO::ERRMODE_SILENT = error codes<br />
PDO::ERRMODE_WARNING = E_WARNING<br />
PDO::ERRMODE_EXCEPTION = Throw exceptions</p>
<p>Here&#8217;s an example of implementing PDO::ATR_ERRMODE:</p>
<p> </p>
<p>Don&#8217;t confuse this with the errors generated from the php setting of error_reporting. The errors from PDO::ATTR_ERRMODE apply to the sql query and its results. I&#8217;ll dive into the error settings and the different outputs of the php.ini error_reporting settings and PDO::ATTR_ERRMODE report settings in a future article.</p></div>
<div>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top">
<div id="sig">
<p>PHP Tutorial, tips, guides. Learn PHP programming. Victor Kimura</p></div>
</td>
</tr>
</tbody>
</table>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.ajaxtime.com/php-pdo-mysql-simple-example-connecting-to-mysql-with-pdo-class.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Reason to Smile For All PHP Developers</title>
		<link>http://www.ajaxtime.com/a-reason-to-smile-for-all-php-developers.html</link>
		<comments>http://www.ajaxtime.com/a-reason-to-smile-for-all-php-developers.html#comments</comments>
		<pubDate>Mon, 22 Jun 2009 02:20:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.ajaxtime.com/?p=519</guid>
		<description><![CDATA[
The market is full of developers in different languages like ASP.net, C#, VB.net, Coldfusion, Java and last but not least PHP. Among all the great time has come for PHP developers in India and abroad. The reason is simple. They are highly in demand due to domestic and international requirement. Let me explain how.
Due to [...]]]></description>
			<content:encoded><![CDATA[<div id="body">
<p>The market is full of developers in different languages like ASP.net, C#, VB.net, Coldfusion, Java and last but not least PHP. Among all the great time has come for PHP developers in India and abroad. The reason is simple. They are highly in demand due to domestic and international requirement. Let me explain how.</p>
<p>Due to the recent recession, most of companies and government organizations have started cutting corners, IT expenditure is among the worst sufferer out of any other expenditures. Because IT expenditure is not considered as Core source of Direct Income, so it&#8217;s going to feel the heat. Now need of having up to date online information without losing the customer faith is also important. Its true for government and private organization. But that cost goes higher and higher in licensing and development. The response to that was simple, open source technology adoption. And what is the easiest and best to start is PHP development.</p>
<p>PHP development is not only providing the cost effective solution but its known for its robust features on internet. Above all the great community support has made it un disputed leader in web development solutions. It&#8217;s definitely giving a second thought to existing proprietary programming language owners.  </p>
<p>The other reason for PHP popularity is the simplicity and structure that is based on OOP. The programmers are taught OPP during their academics, so migrating to PHP from any other language becomes easier than ever. That adds to its rapid expansion among the developers in India and abroad.</p>
<p>The role of India has become vital here, worldwide India is the leading provider of developers, and that gives an edge to India for Open source revolution also. Most famous PHP based open sources like Joomla, Drupal, Oscommerce have their India based community chapters.</p>
<p>Advice to ASP.net Developers and coldfusion developers, don&#8217;t neglect PHP now, it could surely save your job in future.</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.ajaxtime.com/a-reason-to-smile-for-all-php-developers.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP and MySQL 5</title>
		<link>http://www.ajaxtime.com/php-and-mysql-5.html</link>
		<comments>http://www.ajaxtime.com/php-and-mysql-5.html#comments</comments>
		<pubDate>Thu, 16 Apr 2009 15:41:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Information]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php 5]]></category>
		<category><![CDATA[php 6]]></category>

		<guid isPermaLink="false">http://www.ajaxtime.com/?p=141</guid>
		<description><![CDATA[Beginning PHP 5 and MySQL: From Novice to Professional offers a comprehensive introduction to two of the most popular open source technologies on the planet: the PHP scripting language and the MySQL database server. ]]></description>
			<content:encoded><![CDATA[<p>A beginning PHP book, not a beginning programming book. The subtitle, &#8216;From Novice to Professional&#8217;, can be a tad misleading for the novice coder. A beginning programming book covers a lot of material that this book assumes the reader already understands. Many software books include a &#8216;Who Is This Book For&#8217; section that offers some guidance on the suitable reader knowledge level, not this one.</p>
<p>That said, I found this book to be very helpful. The sections on installing and configuring Apache, PHP and MySQL certainly saved me many hours of reading the online documentation and tweaking of settings while setting up my local test bed. That, in itself, made me a very happy camper. The author goes on to cover the various aspects from the basics of the PHP language and class libraries to topics like Authentication, Security, Session Handlers and eMail functionality that help anyone new to PHP setup some fairly sophisticated site capabilities.</p>
<p>The second edition has been supplemented with an added 200 pages, including a new section on PEAR (PHP Extension and Application Repository). This is a wealth of prewritten classes and packages that can be used to add even more sophisticated functionality to the novice&#8217;s web development toolbox. The author demonstrates several of the more prominent packages.</p>
<p>The second edition has greatly beefed up with additional coverage of MySQL 5, including chapters on stored procedures, triggers and the PHP mysqli extension (all missed in the first edition). Most of the examples offered are clean and general enough to be useful templates for the reader&#8217;s tailoring.</p>
<p>My suggestion for novices to PHP is read through chapter 9, then skip to the various sections that solve specific problems being faced or are of particular interest, including installing and configuring your local test bed.</p>
<p>Bottom line, the first edition was a good book for intermediate to veteran programmers looking for a quick tutorial on PHP (circa version 5.0); the second edition is even better. Novice programmers should ensure that they have a full understanding of the basics of programming (and OOP) before attempting it. I would now use this book to teach a class on PHP.</p>
<p>I reach for this book when I want to get up to speed on something about PHP 5 quickly. With it, I can start coding and seeing results right away. The book covers a range of topics, the practicality of which can be best appreciated when you are faced with a real life project. For example, pp. 660-665 in Chapter 27, &#8220;Practical Database Queries&#8221;, covers creating paged output (that is, spreading query results across several web pages) and listing page numbers which was just the thing I wanted to learn last night. My wife&#8217;s database needs that sort of output. You can download Gilmore&#8217;s example code and quickly start using it and then applying the lessons learned to build your own code.</p>
<p>This book is geared to people who want to get their hands on real code, wring the juice from it, make mistakes with it, learn all they can from it, and then tap out fresh code that does the same things with a little more oomph. Such people do not like long, dreary tracts of reading before being able participate in the elusive action. It is a good learning format because the only useful way to learn programming is to dive right in and do it. The book is a blend of brief discussion and quick code snippets with the expected results shown right away. This is a very good way to learn programming.</p>
<p>The section on SOAP, starting on page 450, makes me realize I had better experiment with this interesting technology. I&#8217;d certainly like to be able to find the temperature for a given postal code &#8212; and other things of greater interest. Chapters 12, &#8220;PHP Authentication&#8221;, 14, &#8220;Networking With PHP&#8221;, and 15, &#8220;PHP and LDAP&#8221;, look into core internet services that every programmer should know how to exploit, but too often don&#8217;t. For example I&#8217;ve learned how to authenticate a user with LDAP.</p>
<p>The author, W. Jason Gilmore, is cheerful and most helpful in his responses to reader inquiries. He responded quickly to my questions and I am impressed with his ability to courteously point me in the right direction.</p>
<p>Be sure to download Gilmore&#8217;s example code. There are 30 chapters worth of programming stuffed into that zip file.</p>
<p>The book has a few rough edges. The most obvious is that some sentences are a little wordy. That&#8217;s all right, you can move on to the next paragraphs, and will soon be trying out a new example. I wish Jason had discussed MySQL 4.1 and the mysqli interface, especially since there are other books around that cover MySQL 4.0.x. Perhaps if he had added another chapter to cover that? We can always look forward to a second edition.</p>
<p>This book should be near every serious programmer&#8217;s desk. You, dear reader, will reach for it a surprising amount of the time.</p>
<p>This book was written for new programmers that want a programming introduction to PHP and was not written for web programmers new to PHP. Although I program, I want features of a web programming book when I buy a web programming book.</p>
<p>What I consider a feature of a (good) web programming book: Chapters are split into a quick intro to the most commonly used fuctions of the chapter&#8217;s topic (5-10 pages) and a longer part for use as a reference (15-20 pages). The book&#8217;s format has good eye catching sections so readers do not waste time finding what is important if we just want to skim things so we can get into doing some web programming quickly. Commonly used functions are not buried in a bunch of uncommonly used functions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ajaxtime.com/php-and-mysql-5.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Welcome to ajaxtime.com ！</title>
		<link>http://www.ajaxtime.com/welcome-to-ajaxtimecom.html</link>
		<comments>http://www.ajaxtime.com/welcome-to-ajaxtimecom.html#comments</comments>
		<pubDate>Thu, 09 Apr 2009 08:57:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.ajaxtime.com/?p=1</guid>
		<description><![CDATA[Welcome to ajaxtime.com. This is my first website For the exchange of network technology. In it i will provide free technical informations, templates and modules. Progress day by day.
]]></description>
			<content:encoded><![CDATA[<p>Welcome to ajaxtime.com. This is my first website For the exchange of network technology. In it i will provide free technical informations, templates and modules. Progress day by day.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ajaxtime.com/welcome-to-ajaxtimecom.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
