<?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>Neanderthal Technology &#187; Programming</title>
	<atom:link href="http://www.dopeh.net/category/computing/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dopeh.net</link>
	<description>by Pep</description>
	<lastBuildDate>Thu, 09 Sep 2010 10:26:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>PHP Server Monitor version 2.0 released</title>
		<link>http://www.dopeh.net/2009/10/php-server-monitor-version-20-released/</link>
		<comments>http://www.dopeh.net/2009/10/php-server-monitor-version-20-released/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 13:44:58 +0000</pubDate>
		<dc:creator>Pep</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[phpservermon php server monitor opensource open source]]></category>

		<guid isPermaLink="false">http://www.dopes-planet.net/?p=90</guid>
		<description><![CDATA[Source: PHP Server Monitor project page It&#8217;s been a while since the last release, but finally the new version has arrived: PHP Server Monitor 2.0 has been released. PHP Server Monitor is a script that checks whether the servers on your list are up and running on the selected ports. It comes with a web [...]]]></description>
			<content:encoded><![CDATA[<p>Source: <a href="http://phpservermon.sourceforge.net" target="_blank">PHP Server Monitor project page</a></p>
<p>It&#8217;s been a while since the last release, but finally the new version has arrived: PHP Server Monitor 2.0 has been released.</p>
<p>PHP Server Monitor is a script that checks whether the servers on your list are up<br />
and running on the selected ports.<br />
It comes with a web based user interface where you can add and remove servers or websites from the MySQL database,<br />
and you can manage users for each server with a mobile number and email address.</p>
<p>With version 2.0 comes the support for websites as well. On the &#8220;Add server&#8221; page, you can choose<br />
whether it&#8217;s a &#8220;service&#8221; or a &#8220;website&#8221;:</p>
<p><em>* service</em><br />
A connection will be made to the entered ip or domain, on the given port. This way you can check if certain services on your machine are still running. To check your IMAP service for example, enter port 143.</p>
<p><em>* website</em><br />
The previous version only tried to establish a connection to the server on port 80. If you are running multiple websites on 1 machine, there was no proper way to check each website for possible errors. Also it was impossible to make sure your site was really up and running, all you knew was that the server was still online.<br />
This function takes care of that.<br />
You can enter a link to a website (for example http://sourceforge.net/index.php), it will use cURL to open the website and	check the HTTP status code (see http://en.wikipedia.org/wiki/List_of_HTTP_status_codes for details).<br />
If the HTTP status code is in the 4xx range, it means an error occured and the website is not accesible to the public.<br />
In that case the script will return a &#8220;status offline&#8221;, and will start sending out notifications.</p>
<p>The previous version sent you a notification every time a server was down or unreachable. Version 2 allows you to choose for a different setting. You can choose to only receive notifications if the status changes, if the server goes offline for the first time only, or the way it used to be.</p>
<p>Each server has it&#8217;s own settings regarding notification.<br />
You can choose for email notification or text message (SMS). As of version 2.0, there are 3 gateways<br />
available:<br />
* Mollie &#8211; http://www.mollie.nl<br />
* Spryng &#8211; http://www.spryng.nl<br />
* Inetworx &#8211; http://www.inetworx.ch<br />
For these gateways you need an account with sufficient credits.</p>
<p>If logging is enabled in the configuration, it will log any connection errors, emails and text messages sent.<br />
The latest log records will be displayed on your web interface.<br />
The cron/status.cron.php can be added as a cronjob which will keep the server status up to date.</p>
<p>This version of the monitor features 2 languages: English and Dutch. Unfortunately it is not compatible with the old version, since it&#8217;s been rewritten from scratch.</p>
<p>I&#8217;d appreciate any feedback you might have regarding this script. Please leave it on the sourceforge<br />
project page (tracker), or send me an email (ipdope[at]users.sourceforge.net).</p>
<p>See: <a href="http://phpservermon.sourceforge.net" target="_blank">http://phpservermon.sourceforge.net</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dopeh.net/2009/10/php-server-monitor-version-20-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nominate PHP Server Monitor on SourceForge</title>
		<link>http://www.dopeh.net/2009/05/nominate-php-server-monitor-on-sourceforge/</link>
		<comments>http://www.dopeh.net/2009/05/nominate-php-server-monitor-on-sourceforge/#comments</comments>
		<pubDate>Thu, 14 May 2009 07:27:59 +0000</pubDate>
		<dc:creator>Pep</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[phpservermon php server monitor opensource open source]]></category>

		<guid isPermaLink="false">http://www.dopes-planet.net/?p=89</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href="http://sourceforge.net/community/cca09/nominate/?project_name=PHP Server Monitor&#038;project_url=http://phpservermon.sourceforge.net/"><img src="http://sourceforge.net/images/cca/cca_nominate.png" border="0"/></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dopeh.net/2009/05/nominate-php-server-monitor-on-sourceforge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP: Only variable references should be returned by reference</title>
		<link>http://www.dopeh.net/2009/04/php-only-variable-references-should-be-returned-by-reference/</link>
		<comments>http://www.dopeh.net/2009/04/php-only-variable-references-should-be-returned-by-reference/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 08:22:10 +0000</pubDate>
		<dc:creator>Pep</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[notice]]></category>
		<category><![CDATA[Only variable references should be returned by referenc]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.dopes-planet.net/?p=88</guid>
		<description><![CDATA[Take the following code example: &#60;?php class myClass { public $var = 1; public function &#38;getVar() { return($this-&#62;var); } } $obj = new myClass; $value = &#38;$obj-&#62;getVar(); ?&#62; This looks like valid code, right? PHP wants you to use the &#38; in both places to indicate that you want to return by reference, and that&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>Take the following code example:</p>
<pre class="brush: php;">&lt;?php
class myClass {
	public $var = 1;

 	public function &amp;getVar() {
 		return($this-&gt;var);
        }
}

$obj = new myClass;
$value = &amp;$obj-&gt;getVar();
?&gt;</pre>
<p>This looks like valid code, right? PHP wants you to use the <em>&amp;</em> in both places to indicate that you want to return by reference, and that&#8217;s what we have. But how come that this code still generates the notice?</p>
<p>Quote from php &#8220;return&#8221; manual (http://php.net/return):</p>
<blockquote><p><strong>Note:</strong> You should never use parentheses around your return variable when returning by reference, as this will not work. You can only return variables by reference, not the result of a statement. If you use <em>return ($a);</em> then you&#8217;re not returning a variable, but the result of the expression <em>($a)</em> (which is, of course, the value of <em>$a</em>).</p></blockquote>
<p>While it&#8217;s a very simple mistake, it did take me while to figure this out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dopeh.net/2009/04/php-only-variable-references-should-be-returned-by-reference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
