<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2.3" -->
<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/"
	>

<channel>
	<title>PHP-Scripts Blog &#187; Installation and configuration</title>
	<link>http://www.php-scripts.com</link>
	<description>Writing about PHP scripting since 12/99. Learn something new every day.</description>
	<pubDate>Thu, 09 Oct 2008 14:17:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.3</generator>
	<language>en</language>
			<item>
		<title>Apache + PHP on Mac OS X</title>
		<link>http://www.php-scripts.com/20060405/82/</link>
		<comments>http://www.php-scripts.com/20060405/82/#comments</comments>
		<pubDate>Wed, 05 Apr 2006 18:40:50 +0000</pubDate>
		<dc:creator>TDavid</dc:creator>
		
		<category><![CDATA[Installation and configuration]]></category>

		<category><![CDATA[PHP 4.x]]></category>

		<guid isPermaLink="false">http://www.php-scripts.com/?p=82</guid>
		<description><![CDATA[Though the screenshots have changed the basic process is the same, Kevin Hemenway, takes readers through how to setup an Apache server on Mac OS X and then how to turn on PHP 4.
To edit the httpd.conf I needed to do the following:
1. start Terminal by going to Utilities/Terminal
2. type the following into the terminal:
sudo [...]]]></description>
			<content:encoded><![CDATA[<p>Though the screenshots have changed the basic process is the same, Kevin Hemenway, takes readers through how to setup an <a href="http://www.oreillynet.com/pub/a/mac/2001/12/07/apache.html">Apache server on Mac OS X</a> and then how to <a href="http://www.onlamp.com/pub/a/mac/2002/01/04/apache_macosx_pt3.html#id_10386">turn on PHP 4</a>.</p>
<p>To edit the httpd.conf I needed to do the following:</p>
<p>1. start Terminal by going to Utilities/Terminal<br />
2. type the following into the terminal:</p>
<p>sudo emacs /etc/http/httpd.conf</p>
<p>3. enter in your admin password<br />
4. Inside emacs, uncomment the line</p>
<p>#LoadModule php4_module</p>
<p>to read:<br />
LoadModule php4_module</p>
<p>and change:<br />
 # AddModule mod_php4.c</p>
<p>to read:<br />
AddModule mod_php4.c</p>
<p>Then add the following in the AddType section:</p>
<p>AddType application/x-httpd-php .php<br />
AddType application/x-httpd-php-source .phps</p>
<p>5. Save and exit from emacs<br />
CTRL + x, CTRL +s  = saves changes use the following keyboard combination<br />
CTRL + x, CTRL +c  = exit</p>
<p>6. I created a phpinfo() script using the <a href="http://tacosw.com/main.php">freeware Taco editor</a>.</p>
<div class="codesnip-container" >< ?php<br />
phpinfo();<br />
?></div>
<p>7. Want to <a href="http://developer.apple.com/internet/opensource/osdb.html">install MySQL on OS X</a> too? I&#8217;ll leave that one for readers (or come back and update this entry or add a new one).</p>
<p>8. I chose to download the <a href="http://dev.mysql.com/get/Downloads/MySQL-4.1/mysql-max-4.1.18-apple-darwin8.2.0-powerpc.dmg/from/pick#mirrors">MySQL 4.1 binary here</a>. Once downloaded open the package and double click the appropriate package. I chose mysql-max-4.1.18-apple-darwin8.2.0-powerpc.pkg. It will vary based on what type of Mac you have.</p>
<p>9. After install I chose to startup the database manually using the Terminal shell commands:</p>
<div class="codesnip-container" >shell> cd /usr/local/mysql<br />
     shell> sudo ./bin/mysqld_safe<br />
     (Enter your password, if necessary)<br />
     (Press Control-Z)<br />
     shell> bg<br />
     (Press Control-D or enter &#8220;exit&#8221; to exit the shell)</p>
<p>You should be able to connect to the MySQL server, for example, by<br />
running `/usr/local/mysql/bin/mysql&#8217;.</p></div>
<p>10. Next, I added an alias for MySQL using bash so I could type &#8220;mysql&#8221; to get into the databases and &#8220;mysqladmin&#8221; to use the admin without having to CD to the full path</p>
<p>alias mysql=/usr/local/mysql/bin/mysql<br />
alias mysqladmin=/usr/local/mysql/bin/mysqladmin</p>
<p>11. Voila &#8212; in! Now time to secure the MySQL database and enter in a root password</p>
<p>mysqladmin -u root password PASSWORD_HERE</p>
<p>Just change PASSWORD_HERE to the root password you want to use.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-scripts.com/20060405/82/feed/</wfw:commentRss>
		</item>
		<item>
		<title>AJAX MyTop</title>
		<link>http://www.php-scripts.com/20060131/78/</link>
		<comments>http://www.php-scripts.com/20060131/78/#comments</comments>
		<pubDate>Tue, 31 Jan 2006 17:34:10 +0000</pubDate>
		<dc:creator>TDavid</dc:creator>
		
		<category><![CDATA[AJAX]]></category>

		<category><![CDATA[Installation and configuration]]></category>

		<category><![CDATA[PHP 5.x]]></category>

		<category><![CDATA[PHP 4.x]]></category>

		<guid isPermaLink="false">http://www.php-scripts.com/?p=78</guid>
		<description><![CDATA[Man, how many clicks does it take to get the download these days at Sourceforge? Seems like it took me a half dozen to get to the AjaxMyTop project download.

MyTop creator Jeremy Zawodny writes:
Someone has built and AJAX powered version of mytop, the little console based MySQL monitoring tool I wrote years ago. I guess [...]]]></description>
			<content:encoded><![CDATA[<p>Man, how many clicks does it take to get the download these days at Sourceforge? Seems like it took me a half dozen to get to the <a href="http://jeremy.zawodny.com/blog/archives/006199.html">AjaxMyTop project download</a>.</p>
<p><img src="http://www.php-scripts.com/images/2006/ajaxmytop.jpg" border="0"/></p>
<p>MyTop creator Jeremy Zawodny <a href="http://jeremy.zawodny.com/blog/archives/006199.html">writes</a>:<br />
<blockquote>Someone has built and AJAX powered version of mytop, the little console based MySQL monitoring tool I wrote years ago. I guess it&#8217;s now buzzword compliant.</p></blockquote>
<p><a href="http://jeremy.zawodny.com/mysql/mytop/">mytop</a> is a handy little program for monitoring MySQL queries that we&#8217;ve used in the past on a couple of our boxes so I decided to fire up this AJAX version and see how it fared. AjaxMyTop received <a href="http://ajaxian.com/archives/779">3.7 out of 5 rating at Ajaxian</a> as of this writing.</p>
<p>Installation started at 8:38am PST.  gunzip ajaxMyTop.tar.gz. tar -xvf  ajaxMyTop.tar.  Threw dom errors right away, documentation is non-existent. Error was result of PHP 5.x required for the program. Turns out <a href="http://sourceforge.net/forum/forum.php?thread_id=1431063&#038;forum_id=526557">Michael Kimsal hacked up processlist.php</a> to work in PHP4. Here is the <a href="http://www.php-scripts.com/examples/processlist.phps">PHP 4 process.php source file</a> you&#8217;ll need if you aren&#8217;t running PHP5. And no, I didn&#8217;t clean up the indenting. Total time spent on this project: 20 minutes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-scripts.com/20060131/78/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Installing Apache, PHP, MySQL on Windows XP</title>
		<link>http://www.php-scripts.com/20051116/64/</link>
		<comments>http://www.php-scripts.com/20051116/64/#comments</comments>
		<pubDate>Wed, 16 Nov 2005 20:15:33 +0000</pubDate>
		<dc:creator>TDavid</dc:creator>
		
		<category><![CDATA[Installation and configuration]]></category>

		<guid isPermaLink="false">http://www.php-scripts.com/?p=64</guid>
		<description><![CDATA[Didn&#8217;t try these tutorials out, but they look pretty thorough and thought I&#8217;d pass them along:
These are how-to tutorials to give step by step instructions for installing, setting up, and configuring Apache2 web server, ActivePerl, PHP, and MySQL in Windows. A section is also included that tells you how to make your server accessible to [...]]]></description>
			<content:encoded><![CDATA[<p>Didn&#8217;t try <a href="http://www.ricocheting.com/server/">these tutorials out</a>, but they look pretty thorough and thought I&#8217;d pass them along:<br />
<blockquote>These are how-to tutorials to give step by step instructions for installing, setting up, and configuring Apache2 web server, ActivePerl, PHP, and MySQL in Windows. A section is also included that tells you how to make your server accessible to the world, some info on firewalls, and a section on other types of servers (ftp, mail).</p></blockquote>
<p>Another Windows XP / 2000 local installation tutorial was mentioned <a href="http://www.php-scripts.com/20051013/36/">last month</a>. </p>
<p>My personal and professional preference is to use a web host. Here&#8217;s a few reasons why:</p>
<p>- can develop for the target server environment where programs will run<br />
- I use Windows primarily (yes, I use Linux and Mac too) for desktop and Linux servers so code running locally would need to be further modified</p>
<p>With plans at places like <a href="http://www.1and1.com/?k_id=9582984">1and1.com</a> (affiliate) costing as low as $2.95 a month and including PHP (3, 4 and 5) and a MySQL database, a developer doesn&#8217;t need to look at setting up a local developer environment.</p>
<p><a href="http://www.1and1.com/?k_id=9582984" target="_blank"><img src="http://1and1.org/banners/counting2.gif" width="468" height="60"  border="0"/></a></p>
<p>I&#8217;ll have more to say about 1and1.com in a future post as we use them for a few sites and I&#8217;ve been pleasantly surprised from a webmaster and developer perspective. More on that later.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-scripts.com/20051116/64/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Setting up a new Wordpress blog</title>
		<link>http://www.php-scripts.com/20051102/56/</link>
		<comments>http://www.php-scripts.com/20051102/56/#comments</comments>
		<pubDate>Wed, 02 Nov 2005 17:52:29 +0000</pubDate>
		<dc:creator>TDavid</dc:creator>
		
		<category><![CDATA[Wordpress]]></category>

		<category><![CDATA[Installation and configuration]]></category>

		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.php-scripts.com/?p=56</guid>
		<description><![CDATA[This guide assumes you have already downloaded and unzipped/untarred the most current Wordpress version. These instructions do not cover the multi-user WP version.
Steps for setting up a new Wordpress (WP) blog:
1. Database created? Create a MySQL database for the domain.
Note: If you have more than one WP blog installed in the same database then open [...]]]></description>
			<content:encoded><![CDATA[<p>This guide assumes you have already downloaded and unzipped/untarred the most current <a href="http://wordpress.org/download/">Wordpress version</a>. These instructions do <i>not</i> cover the <a href="http://mu.wordpress.org/">multi-user WP version</a>.</p>
<p>Steps for setting up a new Wordpress (WP) blog:</p>
<p>1. Database created? Create a MySQL database for the domain.</p>
<p>Note: If you have more than one WP blog installed in the same database then open up wp-config.php and change the &#8216;wp_&#8217; to something else like &#8216;wp2_&#8217; so that you can run multiple wordpress blogs in the same database.</p>
<p>2. Edit wp-config.php with the database information. Create a subdirectory in the WP version locally so you can backup the wp-config locally there.<br />
3. FTP all WP files to the target domain, including the customized wp-config.php file in step #2.<br />
4. Run the install file from your browser. Default install location is:</p>
<p>domain.com/wp-admin/install.php</p>
<p>5. Record the admin username and password somewhere safe.<br />
6. Delete the install files: install.php, install-helper.php<br />
7. Create a primary user: Users -> Authors &#038; Users -> Add New User<br />
8. Promote this user to Level 9 (which is one level beneath the Admin level of 10).<br />
9. Add whatever plugins you want to use. Here&#8217;s some you might try:</p>
<p><a href="http://www.ioerror.us/software/bad-behavior/">bad behavior</a> - shut down the spambots<br />
<a href="http://blog.enargi.com/codesnippet/">codesnippet</a> - allows you to include code snippets inside posts<br />
<a href="http://cjbehm.dyndns.org/wingingit/dashboard-options/">dashboard options</a> - add PHP code snippets, RSS feeds and more to your dashboard<br />
<a href="http://blog.taragana.com/index.php/archive/wordpress-15-plugin-strip-nofollow-tag-from-comment-urls/">follow</a> - removes the rel=nofollow links from comments<br />
<a href="http://mnm.uib.es/gallir/wp-cache-2/">wp-cache 2.0</a> - cache pages to speed up loading<br />
page navigation - adds page spanning 1,2,3&#8230; to WP pages<br />
<a href="http://somethingunpredictable.com/wp-dash/">WP-Dash</a> - replace the default admin area</p>
<p>10. Clean up the default Links area, adding/removing any default links.<br />
11. Delete the test post and make a first test placeholder post. Something like &#8220;Hello World&#8221; but by this new user.<br />
12. Choose a template or design your own. Starting with the default template might be helpful. There are detailed instructions at the WP codex for how to make custom WP templates.<br />
13. Start posting!</p>
<p>This post will be updated over time as I&#8217;m using this for my own reference too, so might want to bookmark this one.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-scripts.com/20051102/56/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PHP Markdown Extra</title>
		<link>http://www.php-scripts.com/20051020/48/</link>
		<comments>http://www.php-scripts.com/20051020/48/#comments</comments>
		<pubDate>Thu, 20 Oct 2005 18:40:57 +0000</pubDate>
		<dc:creator>TDavid</dc:creator>
		
		<category><![CDATA[Reviews]]></category>

		<category><![CDATA[Wordpress]]></category>

		<category><![CDATA[Installation and configuration]]></category>

		<category><![CDATA[Free Scripts]]></category>

		<guid isPermaLink="false">http://www.php-scripts.com/?p=48</guid>
		<description><![CDATA[Script/website: michelf.com/projects/php-markdown/
Requirements: PHP
Installation time: Varies. Wordpress plugin installation takes less than a minute
Difficulty: Easy
License: Free, BSD-style open source
Download: PHP source in zip
API: N/A
Author Description: &#8220;The Markdown syntax allows you to write text naturally and format it without using HTML tags. More importantly: in Markdown format, your text stays enjoyable to read for a human being, [...]]]></description>
			<content:encoded><![CDATA[<p><b>Script/website</b>: <a href="http://michelf.com/projects/php-markdown/">michelf.com/projects/php-markdown/</a><br />
<b>Requirements</b>: PHP<br />
<b>Installation time</b>: Varies. Wordpress plugin installation takes less than a minute<br />
<b>Difficulty</b>: Easy<br />
<b>License</b>: Free, BSD-style open source<br />
<b>Download</b>: PHP source in zip<br />
<b>API</b>: N/A<br />
<b>Author Description</b>: &#8220;The Markdown syntax allows you to write text naturally and format it without using HTML tags. More importantly: in Markdown format, your text stays enjoyable to read for a human being, and this is true enough that it makes a Markdown document publishable as-is, as plain text. If you are using text-formatted email, you already know some part of the syntax.&#8221;</p>
<p><img src="http://www.php-scripts.com/images/2005/phpmarkdown1.jpg" border="0" ALT="screenshot of using PHP Markdown through Dingus demo preview"/></p>
<p>Based on <a href="http://daringfireball.net/projects/markdown">John Gruber&#8217;s Markdown</a> (Perl), PHP Markdown can be used a Wordpress plugin by copying over the markdown.php file from the zip file to the wp-content/plugins directory. There is an <a href="http://michelf.com/projects/php-markdown/dingus/">official demo called Dingus here</a>. The screenshot above shows my example of using PHP Markdown syntax through Dingus.</p>
<p>The function Markdown($text) inside markdown.php is passed a text string and returns the marked down version, so incorporating this into another program where you want to markdownify the text is pretty straightforward, although the file is a bit on the bulky side at 55k. Would be more convenient if a version without Wordpress and bBlog code inside it were provided in the zip package.  The most recent version as of this writing was September 5, 2005.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-scripts.com/20051020/48/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Apache, PHP, JSP and MySQL on Windows XP / 2000</title>
		<link>http://www.php-scripts.com/20051013/36/</link>
		<comments>http://www.php-scripts.com/20051013/36/#comments</comments>
		<pubDate>Thu, 13 Oct 2005 05:19:55 +0000</pubDate>
		<dc:creator>TDavid</dc:creator>
		
		<category><![CDATA[Windows]]></category>

		<category><![CDATA[Installation and configuration]]></category>

		<guid isPermaLink="false">http://www.php-scripts.com/?p=36</guid>
		<description><![CDATA[My friend, Lestat, and I were talking earlier today about PHP and Windows earlier today and tonight in my PHP stream I noticed the following article from mpcon.org:
This is a quick guide to install and configure the Apache web-server with PHP and JSP support on a Windows XP Pro SP2 machine. I also included PHPMyAdmin, [...]]]></description>
			<content:encoded><![CDATA[<p>My friend, Lestat, and I were talking earlier today about PHP and Windows earlier today and tonight in my PHP stream I noticed the following article from <a href="http://mpcon.org/apacheguide/index.php">mpcon.org</a>:<br />
<blockquote>This is a quick guide to install and configure the Apache web-server with PHP and JSP support on a Windows XP Pro SP2 machine. I also included PHPMyAdmin, MyODBC, and WordPress.</p></blockquote>
<p>Looks like this might come in handy as a reference. </p>
<p>BTW, fellow coders, you can find several of us down at irc.scriptschool.com #scriptschool throughout the week. Feel free to stop on by and say hello :)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-scripts.com/20051013/36/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Upgrading the built-in WP search</title>
		<link>http://www.php-scripts.com/20051011/35/</link>
		<comments>http://www.php-scripts.com/20051011/35/#comments</comments>
		<pubDate>Wed, 12 Oct 2005 02:07:32 +0000</pubDate>
		<dc:creator>TDavid</dc:creator>
		
		<category><![CDATA[Wordpress]]></category>

		<category><![CDATA[Installation and configuration]]></category>

		<guid isPermaLink="false">http://www.php-scripts.com/?p=35</guid>
		<description><![CDATA[Producing search results from a Wordpress-powered blog that look like something a traditional search engine would produce is not as difficult as it might seem, thanks to a comprehensive plugin and template design. While making some changes, you can also try using a different search results algorithm than the default one. 
The Search Reloaded Wordpress [...]]]></description>
			<content:encoded><![CDATA[<p>Producing search results from a Wordpress-powered blog that look like something a traditional search engine would produce is not as difficult as it might seem, thanks to a comprehensive plugin and template design. While making some changes, you can also try using a different search results algorithm than the default one. </p>
<p>The <a href="http://www.semiologic.com/projects/search-reloaded/">Search Reloaded Wordpress Plugin</a> by Denis at semiologic seeks to improve upon the built-in WP search.</p>
<p><img src="http://www.php-scripts.com/images/2005/search-reloaded1.jpg" border="0" ALT="search reloaded plugin plus page navigation screenshot"/></p>
<p>To use just download, unzip, and FTP to the wp-content/plugins directory. Then go into the admin area and activate the plugin.</p>
<p>If you want to adjust the look of the search results you&#8217;ll need to edit:</p>
<div class="codesnip-container" >function sem_search_results()</div>
<p>This function is at the end of the included sem-search-reloaded.php file and contains code that looks very similar to what is in the default template search.php file.</p>
<p>In the example pictured above, we also used a slightly modified version of GaMerZ <a href="http://www.lesterchan.net/portfolio/programming.php">Page Navigation plugin</a>. This plugin is useful for spanning page, category and search results.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-scripts.com/20051011/35/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to change the server date and time</title>
		<link>http://www.php-scripts.com/20050915/15/</link>
		<comments>http://www.php-scripts.com/20050915/15/#comments</comments>
		<pubDate>Thu, 15 Sep 2005 19:50:51 +0000</pubDate>
		<dc:creator>TDavid</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Installation and configuration]]></category>

		<guid isPermaLink="false">http://www.php-scripts.com/?p=15</guid>
		<description><![CDATA[This is more a Linux task than a PHP one, but for those needing to change their server date/time, it can be done with the linux DATE command as follows:

date - s `+ 1500`

This might require root or sudo privileges. In that case the command would be:

sudo date - s `+ 1500`

On a PHP note, [...]]]></description>
			<content:encoded><![CDATA[<p>This is more a Linux task than a PHP one, but for those needing to change their server date/time, it can be done with the linux DATE command as follows:</p>
<div class="codesnip-container" >
<div class="codesnip">date - s `+ 1500`</div>
</div>
<p>This might require root or sudo privileges. In that case the command would be:</p>
<div class="codesnip-container" >
<div class="codesnip">sudo date - s `+ 1500`</div>
</div>
<p>On a PHP note, I broke down ways to <a href="http://www.php-scripts.com/php_diary/121799.html">work with the PHP date() function</a> in my php-scripts diary on 12/17/1999. It doesn&#8217;t seem like that long ago, but it was nearly <i>six years ago!</i></p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-scripts.com/20050915/15/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to tell if the cURL extension is enabled</title>
		<link>http://www.php-scripts.com/20050910/9/</link>
		<comments>http://www.php-scripts.com/20050910/9/#comments</comments>
		<pubDate>Sat, 10 Sep 2005 14:09:57 +0000</pubDate>
		<dc:creator>TDavid</dc:creator>
		
		<category><![CDATA[Installation and configuration]]></category>

		<category><![CDATA[PHP 5.x]]></category>

		<category><![CDATA[PHP 4.x]]></category>

		<guid isPermaLink="false">http://www.php-scripts.com/?p=9</guid>
		<description><![CDATA[To determine if the cURL extension is enabled, run the following code on your server:

&#60;?php
var_dump&#40;curl_version&#40;&#41;&#41;;
?&#62;

Success! - If cURL exists and is enabled it should return something that looks like this: 
PHP version 4 example successful result:

string(54) &#34;libcurl/7.13.2 OpenSSL/0.9.7e zlib/1.2.2 libidn/0.5.13&#34;

PHP version 5.1 example successful result (returns an array)

Array
(
&#160; &#160;[version_number] =&#62; 461570
&#160; &#160;[age] =&#62; 1
&#160; &#160;[features] [...]]]></description>
			<content:encoded><![CDATA[<p>To determine if the cURL extension is enabled, run the following code on your server:</p>
<div class="codesnip-container" >
<div class="codesnip">&lt;?php<br />
<a href="http://www.php.net/var_dump"><span class="kw3">var_dump</span></a><span class="br0">&#40;</span>curl_version<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;<br />
<span class="kw2">?&gt;</span></div>
</div>
<p><font color='green'>Success!</font> - If cURL exists and is enabled it should return something that looks like this: </p>
<p>PHP version 4 example successful result:</p>
<div class="codesnip-container" >
<div class="codesnip">string(54) &quot;libcurl/7.13.2 OpenSSL/0.9.7e zlib/1.2.2 libidn/0.5.13&quot;</div>
</div>
<p>PHP version 5.1 example successful result (returns an array)</p>
<div class="codesnip-container" >
<div class="codesnip">Array<br />
(<br />
&nbsp; &nbsp;[version_number] =&gt; 461570<br />
&nbsp; &nbsp;[age] =&gt; 1<br />
&nbsp; &nbsp;[features] =&gt; 541<br />
&nbsp; &nbsp;[ssl_version_number] =&gt; 9465935<br />
&nbsp; &nbsp;[version] =&gt; 7.11.2<br />
&nbsp; &nbsp;[host] =&gt; powerpc-apple-darwin6.8<br />
&nbsp; &nbsp;[ssl_version] =&gt;&nbsp; OpenSSL/0.9.7d<br />
&nbsp; &nbsp;[libz_version] =&gt; 1.1.3<br />
&nbsp; &nbsp;[protocols] =&gt; Array<br />
&nbsp; &nbsp; &nbsp; &nbsp;(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[0] =&gt; ftp<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[1] =&gt; gopher<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[2] =&gt; telnet<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[3] =&gt; dict<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[4] =&gt; ldap<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[5] =&gt; http<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[6] =&gt; file<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[7] =&gt; https<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[8] =&gt; ftps<br />
&nbsp; &nbsp; &nbsp; &nbsp;)</p>
<p>)</p></div>
</div>
<p><font color='red'>Failure</font> &#8212; if it doesn&#8217;t exist you&#8217;ll see an error message like this:</p>
<p>
<b>Fatal error</b>:  Call to undefined function:  curl_version() in <b>/path/to/sites/tdavid/php/examples/curl_version.php</b> on line <b>5</b></p>
<p>In this case if you have the right access permissions (usually this is root access) you can edit the php.ini file. Here is instructions on <a href="http://www.php-scripts.com/20050909/8/">how to locate the php.ini file</a>.</p>
<p>You can edit the php.ini on Linux via ssh. </p>
<p><img src="http://www.php-scripts.com/images/2005/ssh-curl_extension.jpg" border="0" ALT="using ssh to edit the php.ini and enable the curl.dll extension"/></p>
<p>The section of the php.ini that refers to cURL is located in the Windows Extensions section, pictured above.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-scripts.com/20050910/9/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Colorized pretty source code htaccess method</title>
		<link>http://www.php-scripts.com/20050909/11/</link>
		<comments>http://www.php-scripts.com/20050909/11/#comments</comments>
		<pubDate>Sat, 10 Sep 2005 00:12:27 +0000</pubDate>
		<dc:creator>TDavid</dc:creator>
		
		<category><![CDATA[Installation and configuration]]></category>

		<category><![CDATA[PHP 5.x]]></category>

		<category><![CDATA[PHP 4.x]]></category>

		<category><![CDATA[PHP 3.x]]></category>

		<guid isPermaLink="false">http://www.php-scripts.com/?p=11</guid>
		<description><![CDATA[
Tired of black and whit coding that looks like what&#8217;s above? Want to colorize it to look like this instead:

Here is how to make colorized pretty source code using the .htacess method for .phps files:
Step 1. create a text file and save it as .htaccess. Put the following code in the file:

AddType application/x-httpd-php-source .phps

Step 2. [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.php-scripts.com/images/2005/highlight_code2.jpg" border="0" ALT="screenshot of non-colorized source code"/></p>
<p>Tired of black and whit coding that looks like what&#8217;s above? Want to colorize it to look like this instead:</p>
<p><img src="http://www.php-scripts.com/images/2005/highlight_code1.jpg" border="0" ALT="screenshot of colorized highlighted source code"/></p>
<p>Here is how to make colorized pretty source code using the .htacess method for .phps files:</p>
<p>Step 1. create a text file and save it as .htaccess. Put the following code in the file:</p>
<div class="codesnip-container" >
<div class="codesnip">AddType application/x-httpd-php-source .phps</div>
</div>
<p>Step 2. change the filename to .phps from .php<br />
Step 3. navigate with your browser to the .phps and voila!</p>
<p>The nice thing about the htacess method is it works with PHP version 3 files, whereas the two function methods only work with version 4.xx and 5.xx. But who is running PHP version 3 any more? Anybody?</p>
<p><b>Other ways to highlight PHP source code</b><br />
If you can&#8217;t or don&#8217;t want to use the htaccess method for some reason then there are a couple PHP functions that will colorize code called: <a href="http://www.php.net/highlight_string">highlight_string()</a> (PHP 4, 5 only) and <a href="http://www.php.net/highlight_file">highlight_file()</a> (PHP 4, 5 only)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-scripts.com/20050909/11/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

