<?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>PHPGuides.com</title>
	<atom:link href="http://phpguides.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://phpguides.wordpress.com</link>
	<description>PHP tips, guides. Read about programming language - PHP.</description>
	<lastBuildDate>Sun, 16 Mar 2008 13:36:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='phpguides.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>PHPGuides.com</title>
		<link>http://phpguides.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://phpguides.wordpress.com/osd.xml" title="PHPGuides.com" />
	<atom:link rel='hub' href='http://phpguides.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Processing PHP output statements</title>
		<link>http://phpguides.wordpress.com/2008/03/16/processing-php-output-statements/</link>
		<comments>http://phpguides.wordpress.com/2008/03/16/processing-php-output-statements/#comments</comments>
		<pubDate>Sun, 16 Mar 2008 08:09:38 +0000</pubDate>
		<dc:creator>stynak</dc:creator>
				<category><![CDATA[Beginner]]></category>

		<guid isPermaLink="false">http://phpguides.wordpress.com/?p=17</guid>
		<description><![CDATA[The Hello World script, like most PHP scripts for the Web, is written mainly to output HTML code that the browser then processes and displays in your Web page. When writing PHP code to deliver output to a Web browser, you need to keep in mind that there are two stages, as follows: 1. PHP [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpguides.wordpress.com&amp;blog=3149591&amp;post=17&amp;subd=phpguides&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The Hello World script, like most PHP scripts for the Web, is written mainly<br />
to output HTML code that the browser then processes and displays in your<br />
Web page. When writing PHP code to deliver output to a Web browser, you<br />
need to keep in mind that there are two stages, as follows:<span id="more-17"></span><br />
1. PHP processes the PHP statement and sends the output to the Web<br />
server, which sends the output to the browser.<br />
PHP does not know anything about HTML code and just sends the output<br />
according to the instructions you write in the PHP output statement.<br />
2. The Web browser receives the output from PHP, interprets it as HTML<br />
statements, and displays a Web page accordingly.<br />
The Web browser only understands HTML, not PHP code, so make sure<br />
your PHP output is understandable to your browser.<br />
Consider the echo statement from the Hello World script:<br />
<font color="#ff0000">echo _&lt;p&gt;Hello World!&lt;/p&gt;_</font></p>
<p>The echo statement says to output everything that is between the double<br />
quotes (“). So, for this statement, the two stages are as follows:<br />
1. When PHP processes the echo statement, it outputs the following:<br />
<font color="#ff0000">&lt;p&gt;Hello World!&lt;/p&gt;</font><br />
PHP does not understand HTML, so it does not know that &lt;p&gt; is an HTML<br />
tag and does not see &lt;p&gt; as any sort of instruction. It just outputs the<br />
statement as text.<br />
2. The Web browser receives the output, recognizes that &lt;p&gt; is an HTML<br />
tag, and displays the output on the Web page according to the HTML<br />
tags. You see the following on the Web page:<br />
<font color="#ff0000">Hello World!</font><br />
The HTML tags &lt;p&gt; and &lt;/p&gt; indicate the beginning and end of a paragraph<br />
and are interpreted by the Web browser, but not displayed on the<br />
screen. To see what PHP sent to the browser, view the source by using<br />
the selections on your Web browser menu. For instance, in Internet<br />
Explorer 5.5, choose View➪Source. For this Web page, the source would<br />
show the following:<br />
<font color="#ff0000">&lt;p&gt;Hello World!&lt;/p&gt;</font></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/phpguides.wordpress.com/17/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/phpguides.wordpress.com/17/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phpguides.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phpguides.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phpguides.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phpguides.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/phpguides.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/phpguides.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/phpguides.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/phpguides.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phpguides.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phpguides.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phpguides.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phpguides.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phpguides.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phpguides.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpguides.wordpress.com&amp;blog=3149591&amp;post=17&amp;subd=phpguides&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://phpguides.wordpress.com/2008/03/16/processing-php-output-statements/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b2a6ee7e6eb407608e09930ae8dc2a30?s=96&#38;d=identicon" medium="image">
			<media:title type="html">stynak</media:title>
		</media:content>
	</item>
		<item>
		<title>Writing Your First PHP Script</title>
		<link>http://phpguides.wordpress.com/2008/03/16/writing-your-first-php-script/</link>
		<comments>http://phpguides.wordpress.com/2008/03/16/writing-your-first-php-script/#comments</comments>
		<pubDate>Sun, 16 Mar 2008 07:09:00 +0000</pubDate>
		<dc:creator>stynak</dc:creator>
				<category><![CDATA[Beginner]]></category>

		<guid isPermaLink="false">http://phpguides.wordpress.com/?p=16</guid>
		<description><![CDATA[It’s sort of a tradition that the first program you write in any language is the Hello World program. You may have written a Hello World program in HTML when you first learned it. If you did, it probably looked similar to the following HTML file: &#60;html&#62; &#60;head&#62;&#60;title&#62;Hello World HTML Program&#60;/title&#62;&#60;/head&#62; &#60;body&#62; &#60;p&#62;Hello World!&#60;/p&#62; &#60;/body&#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpguides.wordpress.com&amp;blog=3149591&amp;post=16&amp;subd=phpguides&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It’s sort of a tradition that the first program you write in any language is the<br />
Hello World program. You may have written a Hello World program in<br />
HTML when you first learned it. If you did, it probably looked similar to the<br />
following HTML file:<span id="more-16"></span></p>
<p><font color="#ff0000">&lt;html&gt;<br />
&lt;head&gt;&lt;title&gt;Hello World HTML Program&lt;/title&gt;&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;p&gt;Hello World!&lt;/p&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</font></p>
<p>If you point your browser at this HTML program, you see a Web page that displays<br />
the following output in the browser window:</p>
<p><font color="#ff0000">Hello World!</font></p>
<p>Your first PHP script is a script that does exactly the same thing. The following<br />
code is a PHP script that includes both HTML and PHP code and displays<br />
Hello World! in a browser window:</p>
<p><font color="#ff0000">&lt;html&gt;<br />
&lt;head&gt;&lt;title&gt;Hello World Script&lt;/title&gt;&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;?php<br />
echo “&lt;p&gt;Hello World!&lt;/p&gt;”<br />
?&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</font></p>
<p>If you point your browser at this script, it displays the same Web page as the<br />
HTML script.</p>
<p>Don’t look at the file directly with your browser. That is, don’t choose File➪<br />
Open➪Browse from your browser menu to navigate to the file and click it.<br />
You must point at the file by typing its URL, as discussed in Chapter 2. If you<br />
see the PHP code displayed in the browser window, instead of the output you<br />
expect, you may not have pointed to the file by using its URL.</p>
<p>In this PHP script, the PHP section consists of the following code:</p>
<p><font color="#ff0000">&lt;?php<br />
echo _&lt;p&gt;Hello World!&lt;/p&gt;_<br />
?&gt;</font></p>
<p>The PHP tags enclose only one statement — an echo statement — that simply<br />
outputs the text between the double quotes.</p>
<p>When the PHP section is processed, it is replaced with the output. In this<br />
case, the output is as follows:</p>
<p><font color="#ff0000">&lt;p&gt;Hello World!&lt;/p&gt;</font></p>
<p>If you replace the PHP section in the HTML version of Hello World with the<br />
preceding output, the script now looks exactly like the HTML program. If you<br />
point your browser at either program, you see the same Web page. If you look<br />
at the source code that the browser sees (in the browser, choose View➪<br />
Source), you see the same source code listing for both programs.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/phpguides.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/phpguides.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phpguides.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phpguides.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phpguides.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phpguides.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/phpguides.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/phpguides.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/phpguides.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/phpguides.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phpguides.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phpguides.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phpguides.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phpguides.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phpguides.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phpguides.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpguides.wordpress.com&amp;blog=3149591&amp;post=16&amp;subd=phpguides&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://phpguides.wordpress.com/2008/03/16/writing-your-first-php-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b2a6ee7e6eb407608e09930ae8dc2a30?s=96&#38;d=identicon" medium="image">
			<media:title type="html">stynak</media:title>
		</media:content>
	</item>
		<item>
		<title>Choosing a Web hosting company</title>
		<link>http://phpguides.wordpress.com/2008/03/15/choosing-a-web-hosting-company/</link>
		<comments>http://phpguides.wordpress.com/2008/03/15/choosing-a-web-hosting-company/#comments</comments>
		<pubDate>Sat, 15 Mar 2008 14:39:01 +0000</pubDate>
		<dc:creator>stynak</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://phpguides.com/2008/03/15/choosing-a-web-hosting-company/</guid>
		<description><![CDATA[A Web hosting company provides everything you need to put up a Web site, including the computer space and all the Web site software. You just create the files for your Web pages and move them to a location specified by the Web hosting company. About a gazillion companies offer Web hosting services. Most charge [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpguides.wordpress.com&amp;blog=3149591&amp;post=13&amp;subd=phpguides&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A Web hosting company provides everything you need to put up a Web site,<br />
including the computer space and all the Web site software. You just create<br />
the files for your Web pages and move them to a location specified by the<br />
Web hosting company.<span id="more-13"></span></p>
<p>About a gazillion companies offer Web hosting services. Most charge a monthly<br />
fee, which is often quite small, and some are even free. Most of the free ones<br />
require you to display advertising. Usually, the monthly fee varies, depending<br />
on the resources provided for your Web site. For instance, a Web site with<br />
2MB (megabytes) of disk space for your Web page files costs less than a Web<br />
site with 10MB of disk space.</p>
<p>When looking for a place to host your Web site, make sure that the Web hosting<br />
company offers PHP. Some do not. Also, make sure the company offers a<br />
recent version of PHP. Web hosting companies may not offer a version that<br />
has just been released, but they should upgrade their PHP fairly soon after a<br />
new version is released.</p>
<p>Don’t consider a Web hosting company that offers only PHP 3. PHP 4.3.1 was<br />
released in February 2003, so no Web hosting company should still be providing<br />
PHP older than 4.3.1, especially because a security issue was discovered<br />
in earlier versions and was fixed in PHP 4.3.1. Ideally, by the time you read<br />
this, most Web hosting companies will be offering PHP 5.</p>
<p>Other considerations when choosing a Web hosting company include the<br />
following:</p>
<ul>
<li>Reliability: You need a Web hosting company that you can depend on —<br />
one that won’t go broke and disappear tomorrow. And you want one<br />
that has enough computer power and other resources to keep your Web<br />
site up. A Web site with more down time than up time is pretty useless.<br />
Hopefully, some research on the Web or among colleagues will identify<br />
Web hosting companies whose reliability is not up to snuff.</li>
<li>Speed: Web pages that download slowly are a problem because users<br />
will get impatient and go elsewhere. Slow pages may be a result of a Web<br />
hosting company that started its business on a shoestring and has a<br />
shortage of good equipment, or the problem may be a Web hosting company<br />
that is so successful that its equipment is overwhelmed by new<br />
customers. Either way, Web hosting companies that deliver Web pages<br />
too slowly are unacceptable. In some cases, you can find sites that are<br />
hosted at the Web hosting company and see the download speed for<br />
these sites. Sometimes the Web hosting company’s Web site provides<br />
some customer links, or the company’s salespeople may provide you<br />
with this information.</li>
<li>Technical support: Some Web hosting companies have no one available<br />
to answer questions or troubleshoot problems. Technical support is<br />
22 Part I: Say Hello to the PHP Scripting Language<br />
often provided through e-mail only, which can be acceptable if the<br />
response time is short. Sometimes you can test the quality of the company’s<br />
support by calling the tech support number, or test the e-mail<br />
response time by sending an e-mail.</li>
<li>Domain name: Each Web site has a domain name that Web browsers use<br />
to find the site on the Web. Each domain name is registered, for a small<br />
yearly fee, so that only one Web site can use it. Some Web hosting companies<br />
allow you to use a domain name that you have registered independently<br />
of the Web hosting company, some assist you in registering<br />
and using a new domain name, and some require you to use their domain<br />
name. For instance, suppose your company’s name is Good Stuff and you<br />
want your Web site to be named JanetsGoodStuff. Some companies allow<br />
your Web site to be JanetsGoodStuff.com, but some require that your<br />
Web site be named JanetsGoodStuff.webhostingcompanyname.com,<br />
or webhostingcompanyname.com/~GoodStuff, or something similar. In<br />
general, your Web site will look more professional if you can use your<br />
own domain name.</li>
<li>Backups: Backups are copies of your Web page files and your database<br />
that are stored in case your files or database are lost or damaged. You<br />
want to be sure that the company makes regular, frequent backup copies<br />
of your application. You also want to know how long it would take for<br />
backups to be put in place to restore your Web site to working order<br />
after a problem.</li>
</ul>
<p>It’s difficult to research Web hosting companies from a standing start — a<br />
search at Google for Web hosting results in over 4 million hits. The best way<br />
to research Web hosting companies is to ask for recommendations from<br />
people who have experience with those companies. People who have used a<br />
hosting company can warn you that the service is slow or that the computers<br />
are frequently down. After you have gathered a few names of Web hosting<br />
companies from satisfied customers, you can narrow the list to the one that<br />
is best suited and most cost-effective for your purposes.</p>
<p>You can ask for names from colleagues and friends. Also, people often ask for<br />
recommendations for hosting companies on the PHP discussion lists. Many<br />
people on the lists have experience using PHP with Web hosting companies<br />
and are glad to provide recommendations or warnings. Because people often<br />
ask this question, you may get all the information you need from the list<br />
archives, which you can search at marc.theaimsgroup.com/.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/phpguides.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/phpguides.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phpguides.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phpguides.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phpguides.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phpguides.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/phpguides.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/phpguides.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/phpguides.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/phpguides.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phpguides.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phpguides.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phpguides.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phpguides.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phpguides.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phpguides.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpguides.wordpress.com&amp;blog=3149591&amp;post=13&amp;subd=phpguides&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://phpguides.wordpress.com/2008/03/15/choosing-a-web-hosting-company/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b2a6ee7e6eb407608e09930ae8dc2a30?s=96&#38;d=identicon" medium="image">
			<media:title type="html">stynak</media:title>
		</media:content>
	</item>
		<item>
		<title>Using an existing Web environment</title>
		<link>http://phpguides.wordpress.com/2008/03/15/using-an-existing-web-environment/</link>
		<comments>http://phpguides.wordpress.com/2008/03/15/using-an-existing-web-environment/#comments</comments>
		<pubDate>Sat, 15 Mar 2008 14:34:42 +0000</pubDate>
		<dc:creator>stynak</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://phpguides.com/2008/03/15/using-an-existing-web-environment/</guid>
		<description><![CDATA[When you use a Web environment set up by someone else, you don’t need to understand the installation and administration of the Web site software. Someone else — your company’s IT department, a commercial Web hosting company, your next-door neighbor — is responsible for the operation of the Web site. It’s their job to provide [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpguides.wordpress.com&amp;blog=3149591&amp;post=12&amp;subd=phpguides&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When you use a Web environment set up by someone else, you don’t need<br />
to understand the installation and administration of the Web site software.<br />
Someone else — your company’s IT department, a commercial Web hosting<br />
company, your next-door neighbor — is responsible for the operation of the<br />
Web site. It’s their job to provide you with a working Web site, including PHP<br />
if it’s required. Your job is only to write and install the Web site files.<span id="more-12"></span></p>
<p>To use an existing Web environment, you need the following information from<br />
the Web site administrator:</p>
<ul>
<li>The location of Web pages: For the world to see your Web site, the files<br />
containing the Web pages must be in a specific location on the computer.<br />
The Web server that delivers the Web pages to the world expects to find<br />
the files in a specific directory. You need to know where that directory is<br />
and have access to the directory.</li>
<li>The Web page installation process: You need to know how to install the<br />
files. In most cases, you send the files via FTP to the proper location. FTP<br />
(File Transfer Protocol) is a method of copying a file from one computer<br />
to another on a network. In some cases, you may copy the files directly<br />
or use other methods to install the Web pages. You may need a user ID<br />
and password to install the files.</li>
<li>The name of the default file: When users point their browsers at a URL, a<br />
file is sent to them. The Web server is set up to send a specific default file<br />
when the URL points to a directory. Very often the default file is named<br />
index.htm or index.html, but sometimes other names are used, such as<br />
default.htm. You need to know what you should name your default file.</li>
<li>The PHP file extension: When PHP is installed, the Web server is<br />
instructed to expect PHP statements in files with specific extensions.<br />
Frequently, the extensions used are .php or .phtml, but other extensions<br />
can be used. PHP statements in files that do not have the correct extensions<br />
won’t be processed. You need to know what extension to use for<br />
your PHP scripts.</li>
</ul>
<p>One of the disadvantages of hosting your site in an existing Web environment<br />
is that you have no control over your development environment. The administrators of the Web environment provide the environment that works best for them. For instance, PHP has a myriad of options that can be set, unset, or given various values. The administrators decide the option settings based on<br />
their needs, which may or may not be ideal for your purposes. They probably<br />
set up the environment for ease of maintenance, low cost, and minimal customer defections. You can’t change certain parts of your environment; you<br />
can only beg the administrators to change it. They will be reluctant to change<br />
a working setup because a change may cause problems for their system or<br />
for other customers.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/phpguides.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/phpguides.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phpguides.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phpguides.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phpguides.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phpguides.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/phpguides.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/phpguides.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/phpguides.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/phpguides.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phpguides.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phpguides.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phpguides.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phpguides.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phpguides.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phpguides.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpguides.wordpress.com&amp;blog=3149591&amp;post=12&amp;subd=phpguides&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://phpguides.wordpress.com/2008/03/15/using-an-existing-web-environment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b2a6ee7e6eb407608e09930ae8dc2a30?s=96&#38;d=identicon" medium="image">
			<media:title type="html">stynak</media:title>
		</media:content>
	</item>
		<item>
		<title>Establishing Your Web Environment</title>
		<link>http://phpguides.wordpress.com/2008/03/15/establishing-your-web-environment/</link>
		<comments>http://phpguides.wordpress.com/2008/03/15/establishing-your-web-environment/#comments</comments>
		<pubDate>Sat, 15 Mar 2008 14:33:29 +0000</pubDate>
		<dc:creator>stynak</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Access]]></category>
		<category><![CDATA[Control]]></category>
		<category><![CDATA[Stability]]></category>

		<guid isPermaLink="false">http://phpguides.wordpress.com/?p=11</guid>
		<description><![CDATA[PHP for Web development runs in partnership with a Web server, as described in Chapter 1. Thus, a Web site requires a Web server. To use PHP in your Web site, the Web server must be able to exchange information with the PHP software, and, thus, PHP must be installed where the Web server can [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpguides.wordpress.com&amp;blog=3149591&amp;post=11&amp;subd=phpguides&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>PHP for Web development runs in partnership with a Web server, as described<br />
in Chapter 1. Thus, a Web site requires a Web server. To use PHP in your Web<br />
site, the Web server must be able to exchange information with the PHP software, and, thus, PHP must be installed where the Web server can access it.<br />
The Web site environment involves more than just a Web server and PHP on a computer. Here are a few other requirements:</p>
<p><span id="more-11"></span></p>
<ul>
<li>The computer must be connected to the Internet.</li>
<li>The computer must have enough resources, such as disk space and<br />
memory, to handle the expected Web traffic.</li>
<li>Other software, such as a database, may be required in the environment.</li>
</ul>
<p>You may or may not be interested in setting up your own Web environment.<br />
You may think that installing software is fun, or you may think it’s similar to<br />
having the flu. If you want to install your own Web environment from scratch,<br />
you can. You may even already have a Web site running on your own computer<br />
and are just looking to add to its functionality by using PHP. If you don’t want<br />
to install your own Web environment, you can use a Web environment installed<br />
and maintained by someone else, such as the IT department at work or a<br />
commercial Web hosting company. Perhaps you have an existing Web site at<br />
a hosting company that you want to make more dynamic. You can use PHP in<br />
either a Web environment of your own or one provided by someone else.</p>
<p>Another common development environment includes both your own Web<br />
environment and one maintained by someone else. That is, it’s common for<br />
developers to set up testing Web environments on their own computers where<br />
they write and debug Web pages. Then, when everything is working correctly,<br />
the Web pages are transferred to their Web site at work, maintained by the IT<br />
department, or to a Web hosting company.</p>
<p>The following are some advantages of using someone else’s Web environment:</p>
<ul>
<li>It’s easier than setting up your own: You just copy your Web pages onto<br />
the other party’s computer, and that’s it. You don’t need to install any<br />
software or hardware or resolve any computer problems. Someone else<br />
handles that for you.</li>
<li>Less technical skill is required: You need to understand only Web languages,<br />
such as HTML and PHP. You don’t need to know about Internet<br />
connections, Web servers, computer administration, and other technical<br />
things. Some people are very interested in these things, but some are not.</li>
</ul>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/phpguides.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/phpguides.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phpguides.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phpguides.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phpguides.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phpguides.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/phpguides.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/phpguides.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/phpguides.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/phpguides.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phpguides.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phpguides.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phpguides.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phpguides.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phpguides.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phpguides.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpguides.wordpress.com&amp;blog=3149591&amp;post=11&amp;subd=phpguides&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://phpguides.wordpress.com/2008/03/15/establishing-your-web-environment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b2a6ee7e6eb407608e09930ae8dc2a30?s=96&#38;d=identicon" medium="image">
			<media:title type="html">stynak</media:title>
		</media:content>
	</item>
		<item>
		<title>Previous versions of PHP</title>
		<link>http://phpguides.wordpress.com/2008/03/15/previous-versions-of-php/</link>
		<comments>http://phpguides.wordpress.com/2008/03/15/previous-versions-of-php/#comments</comments>
		<pubDate>Sat, 15 Mar 2008 14:30:47 +0000</pubDate>
		<dc:creator>stynak</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://phpguides.com/2008/03/15/previous-versions-of-php/</guid>
		<description><![CDATA[You should be aware of some significant changes in previous PHP versions because existing scripts that work fine on earlier versions may have problems when they’re run on a later version, and vice versa. The following are some changes you should be aware of: Version 4.3.1: Fixed a security problem in 4.3.0. It’s not wise [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpguides.wordpress.com&amp;blog=3149591&amp;post=10&amp;subd=phpguides&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You should be aware of some significant changes in previous PHP versions<br />
because existing scripts that work fine on earlier versions may have problems<br />
when they’re run on a later version, and vice versa. The following are some<br />
changes you should be aware of:<span id="more-10"></span></p>
<ul>
<li>Version 4.3.1: Fixed a security problem in 4.3.0. It’s not wise to continue<br />
to run a Web site using versions 4.3.0 or earlier.</li>
<li>Version 4.3.0: Included significant improvements to the CLI version of<br />
PHP, which is now built by default when you compile PHP from source<br />
code (described in Appendix A). You must disable its build with installation<br />
options if you don’t want it to be built.</li>
<li>Version 4.2.0: Changed the default setting for register_globals to Off.<br />
Scripts running under previous versions may depend on register_<br />
globals being set to On and may stop running with the new setting. It’s<br />
best to change the coding of the script so that it runs with<br />
register_globals set to Off.</li>
<li>Version 4.1.0: Introduced the superglobal arrays. Scripts written using<br />
the superglobals (described in Chapter 6) won’t run in earlier versions.<br />
Prior to 4.1.0, you must use the old style arrays, such as<br />
$HTTP_POST_VARS.</li>
</ul>
<p>By the time you read this, it’s possible that everyone has updated to PHP 5.<br />
However, some IT departments and Web hosting companies may not update<br />
immediately. Keep the previous changes in mind when using older versions.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/phpguides.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/phpguides.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phpguides.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phpguides.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phpguides.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phpguides.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/phpguides.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/phpguides.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/phpguides.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/phpguides.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phpguides.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phpguides.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phpguides.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phpguides.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phpguides.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phpguides.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpguides.wordpress.com&amp;blog=3149591&amp;post=10&amp;subd=phpguides&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://phpguides.wordpress.com/2008/03/15/previous-versions-of-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b2a6ee7e6eb407608e09930ae8dc2a30?s=96&#38;d=identicon" medium="image">
			<media:title type="html">stynak</media:title>
		</media:content>
	</item>
		<item>
		<title>PHP 5</title>
		<link>http://phpguides.wordpress.com/2008/03/15/php-5/</link>
		<comments>http://phpguides.wordpress.com/2008/03/15/php-5/#comments</comments>
		<pubDate>Sat, 15 Mar 2008 14:29:52 +0000</pubDate>
		<dc:creator>stynak</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://phpguides.com/2008/03/15/php-5/</guid>
		<description><![CDATA[Most of the important changes in PHP version 5 don’t affect the coding or the use of PHP. They affect the performance of PHP. The Zend engine (the magic, invisible engine that powers PHP) has been significantly improved, and as a result, scripts run faster and more efficiently. The object-oriented programming features of PHP are [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpguides.wordpress.com&amp;blog=3149591&amp;post=9&amp;subd=phpguides&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Most of the important changes in PHP version 5 don’t affect the coding or the<br />
use of PHP. They affect the performance of PHP. The Zend engine (the magic,<br />
invisible engine that powers PHP) has been significantly improved, and as a<br />
result, scripts run faster and more efficiently.<span id="more-9"></span></p>
<p>The object-oriented programming features of PHP are a major focus of PHP 5.<br />
Object-oriented programming is greatly improved over PHP 4. The creation<br />
and use of objects runs much faster, many object-oriented features have been<br />
added, and exceptions are introduced. Programmers who prefer objectoriented<br />
programming will be much happier with PHP 5. (Object-oriented<br />
programming is described in Chapter 9.)</p>
<p>With PHP 5, the names of the PHP programs changed. PHP for the Web is<br />
called php-cgi; PHP CLI is called just php, as in php.exe on Windows. Both<br />
are stored in the directory where PHP is installed. Prior to PHP 5, both programs were named php.exe, but stored in different subdirectories.</p>
<p>PHP 5 adds support for MySQL 4.1 and later. However, support for MySQL<br />
is not included with PHP 5 by default. Support for MySQL 4.0 or MySQL 4.1<br />
must be specified when PHP is installed. Prior to PHP 5, support for MySQL<br />
4.0 and earlier was included automatically.</p>
<p>PHP 5 includes support for SQLite by default. SQLite provides quick and easy<br />
methods for storing and retrieving data in flat files.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/phpguides.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/phpguides.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phpguides.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phpguides.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phpguides.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phpguides.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/phpguides.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/phpguides.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/phpguides.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/phpguides.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phpguides.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phpguides.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phpguides.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phpguides.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phpguides.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phpguides.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpguides.wordpress.com&amp;blog=3149591&amp;post=9&amp;subd=phpguides&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://phpguides.wordpress.com/2008/03/15/php-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b2a6ee7e6eb407608e09930ae8dc2a30?s=96&#38;d=identicon" medium="image">
			<media:title type="html">stynak</media:title>
		</media:content>
	</item>
		<item>
		<title>Keeping Up with Changes in PHP</title>
		<link>http://phpguides.wordpress.com/2008/03/15/keeping-up-with-changes-in-php/</link>
		<comments>http://phpguides.wordpress.com/2008/03/15/keeping-up-with-changes-in-php/#comments</comments>
		<pubDate>Sat, 15 Mar 2008 14:28:46 +0000</pubDate>
		<dc:creator>stynak</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://phpguides.com/2008/03/15/keeping-up-with-changes-in-php/</guid>
		<description><![CDATA[PHP is open source software. If you have only used software from major software publishers — such as Microsoft, Macromedia, or Adobe — you will find that open source software is an entirely different species. It’s developed by a group of programmers who write the code in their spare time, for fun and for free. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpguides.wordpress.com&amp;blog=3149591&amp;post=8&amp;subd=phpguides&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>PHP is open source software. If you have only used software from major software<br />
publishers — such as Microsoft, Macromedia, or Adobe — you will find<br />
that open source software is an entirely different species. It’s developed by a<br />
group of programmers who write the code in their spare time, for fun and for<br />
free. There’s no corporate office to call with questions. There’s no salesperson<br />
to convince you of the wonders of the software. There’s no technical support<br />
phone number where you can be put on hold.<span id="more-8"></span></p>
<p>Sounds like there’s no support for PHP, doesn’t it? Actually, quite the opposite<br />
is true: An incredible amount of support is available. PHP is supported by the<br />
developers and by the many PHP users. But you need to look for the support.<br />
It’s part of your job as a PHP user and developer to search out the information<br />
you need.</p>
<p>Open source software changes frequently, rather than once every year or two<br />
as commercial software does. It changes when the developers feel it’s ready.<br />
It also changes quickly in response to problems. When a serious problem,<br />
such as a security hole, is found, a new version that fixes the problem may be<br />
released in days. You don’t receive glossy brochures or see splashy magazine<br />
ads for a year before a new version is released. If you don’t make the effort to<br />
stay informed, you may miss the release of a new version or be unaware of a<br />
serious problem with your current version.</p>
<p>Visit the PHP Web site often. You need to know the information that’s published<br />
there. Join the mailing lists, which often are very high in traffic. When<br />
you first start using PHP, the large number of mail messages on the discussion<br />
lists brings valuable information into your e-mail box; you can pick up a lot by<br />
reading those messages. And soon, you may be able to help others based on<br />
your own experience. At the very least, subscribe to the announcement mailing<br />
list, which only delivers e-mail occasionally. Any important problems or new<br />
versions are announced here. The e-mail you receive from the announcement<br />
list contains information you need to know.</p>
<p>So, right now, before you forget, hop over to the PHP Web site and sign up for<br />
a list or two at www.php.net/mailing-lists.php.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/phpguides.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/phpguides.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phpguides.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phpguides.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phpguides.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phpguides.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/phpguides.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/phpguides.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/phpguides.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/phpguides.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phpguides.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phpguides.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phpguides.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phpguides.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phpguides.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phpguides.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpguides.wordpress.com&amp;blog=3149591&amp;post=8&amp;subd=phpguides&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://phpguides.wordpress.com/2008/03/15/keeping-up-with-changes-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b2a6ee7e6eb407608e09930ae8dc2a30?s=96&#38;d=identicon" medium="image">
			<media:title type="html">stynak</media:title>
		</media:content>
	</item>
		<item>
		<title>Using PHP for database applications</title>
		<link>http://phpguides.wordpress.com/2008/03/15/using-php-for-database-applications/</link>
		<comments>http://phpguides.wordpress.com/2008/03/15/using-php-for-database-applications/#comments</comments>
		<pubDate>Sat, 15 Mar 2008 14:27:04 +0000</pubDate>
		<dc:creator>stynak</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://phpguides.wordpress.com/?p=7</guid>
		<description><![CDATA[PHP is particularly strong in its ability to interact with databases. PHP supports pretty much every database you’ve ever heard of and some you haven’t. PHP handles connecting to the database and communicating with it, so you don’t need to know the technical details for connecting to a database or for exchanging messages with it. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpguides.wordpress.com&amp;blog=3149591&amp;post=7&amp;subd=phpguides&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>PHP is particularly strong in its ability to interact with databases. PHP supports<br />
pretty much every database you’ve ever heard of and some you haven’t.<br />
PHP handles connecting to the database and communicating with it, so you<br />
don’t need to know the technical details for connecting to a database or for<br />
exchanging messages with it. You tell PHP the name of the database and<br />
where it is, and PHP handles the details. It connects to the database, passes<br />
your instructions to the database, and returns the database response to you.<span id="more-7"></span></p>
<p>Major databases currently supported by PHP include the following:</p>
<ul>
<li>dBASE</li>
<li>Informix</li>
<li>Ingres</li>
<li>Microsoft SQL Server</li>
<li>mSQL</li>
<li>MySQL</li>
<li>Oracle</li>
<li>PostgreSQL</li>
<li>Sybase</li>
</ul>
<p>PHP supports other databases as well, such as filePro, FrontBase, and<br />
InterBase. In addition, PHP supports ODBC (Open Database Connectivity),<br />
a standard that allows you to communicate with even more databases, such<br />
as Access and IBM DB2.</p>
<p>PHP works well for a database-driven Web site. PHP scripts in the Web site<br />
can store data in and retrieve data from any supported database. PHP also<br />
can interact with supported databases outside a Web environment. Database<br />
use is one of PHP’s best features.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/phpguides.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/phpguides.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phpguides.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phpguides.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phpguides.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phpguides.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/phpguides.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/phpguides.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/phpguides.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/phpguides.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phpguides.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phpguides.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phpguides.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phpguides.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phpguides.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phpguides.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpguides.wordpress.com&amp;blog=3149591&amp;post=7&amp;subd=phpguides&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://phpguides.wordpress.com/2008/03/15/using-php-for-database-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b2a6ee7e6eb407608e09930ae8dc2a30?s=96&#38;d=identicon" medium="image">
			<media:title type="html">stynak</media:title>
		</media:content>
	</item>
		<item>
		<title>Using PHP for Web applications</title>
		<link>http://phpguides.wordpress.com/2008/03/15/using-php-for-web-applications-2/</link>
		<comments>http://phpguides.wordpress.com/2008/03/15/using-php-for-web-applications-2/#comments</comments>
		<pubDate>Sat, 15 Mar 2008 14:20:29 +0000</pubDate>
		<dc:creator>stynak</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://phpguides.wordpress.com/?p=6</guid>
		<description><![CDATA[In the beginning, Web pages were static — they just presented documents. Users went to Web sites to read information. Documents were linked together so that users could easily find the information they sought, but the Web pages didn’t change. Every user who arrived at a Web page saw the same thing. Soon Web page [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpguides.wordpress.com&amp;blog=3149591&amp;post=6&amp;subd=phpguides&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In the beginning, Web pages were static — they just presented documents.<br />
Users went to Web sites to read information. Documents were linked together<br />
so that users could easily find the information they sought, but the Web pages<br />
didn’t change. Every user who arrived at a Web page saw the same thing.<span id="more-6"></span></p>
<p>Soon Web page developers wanted to do more. They wanted to interact with<br />
visitors, collect information from users, and provide Web pages that were<br />
customized for individuals. Several languages have developed that can be<br />
used to make Web sites dynamic. PHP is one of the most successful of these<br />
languages, evolving quickly to become more and more useful and rapidly<br />
growing in popularity.</p>
<p>PHP is a server-side scripting language, which means that the scripts are executed<br />
on the server (the computer where the Web site is located). This is different<br />
than JavaScript, another popular language for dynamic Web sites. JavaScript<br />
is executed by the browser, on the user’s computer. Thus, JavaScript is a clientside<br />
language. Web servers and the interaction between servers and clients are<br />
discussed in the section “PHP for the Web,” later in this chapter.</p>
<p>Because PHP scripts execute on the server, PHP can dynamically create the<br />
HTML code that generates the Web page, which allows individual users to<br />
see customized Web pages. Web page visitors see the output from scripts,<br />
but not the scripts themselves.</p>
<p>PHP has many features designed specifically for use in Web sites, including<br />
the following:</p>
<ul>
<li>Interact with HTML forms: PHP can display an HTML form and process<br />
the information that the user types in.</li>
<li>Communicate with databases: PHP can interact with databases to store<br />
information from the user or retrieve information that is displayed to<br />
the user.</li>
<li>Generate secure Web pages: PHP allows the developer to create secure<br />
Web pages that require users to enter a valid username and password<br />
before seeing the Web page content.</li>
</ul>
<p>PHP features make these and many other Web page tasks easy.</p>
<p>PHP is only server-side, meaning it can’t interact directly with the user’s computer.<br />
That means PHP can’t initiate actions based on the status of the user’s<br />
computer, such as mouse actions or screen size. Therefore, PHP alone can’t<br />
produce some popular effects, such as navigation menus that drop down or<br />
change color. On the other hand, JavaScript, a client-side scripting language,</p>
<p>can’t access the server, limiting its possibilities. For example, you can’t use<br />
JavaScript to store data on the server or retrieve data from the server. But<br />
wait! You don’t have to choose. You can use JavaScript and PHP together to<br />
produce Web pages that neither can produce alone. See Chapter 11 for details<br />
on using JavaScript and PHP together.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/phpguides.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/phpguides.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phpguides.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phpguides.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phpguides.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phpguides.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/phpguides.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/phpguides.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/phpguides.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/phpguides.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phpguides.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phpguides.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phpguides.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phpguides.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phpguides.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phpguides.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpguides.wordpress.com&amp;blog=3149591&amp;post=6&amp;subd=phpguides&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://phpguides.wordpress.com/2008/03/15/using-php-for-web-applications-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b2a6ee7e6eb407608e09930ae8dc2a30?s=96&#38;d=identicon" medium="image">
			<media:title type="html">stynak</media:title>
		</media:content>
	</item>
	</channel>
</rss>
