<?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>YourHelpCenter.de &#187; php</title>
	<atom:link href="http://www.yourhelpcenter.de/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yourhelpcenter.de</link>
	<description>Hilfe, Lösungen &#38; Support für IT Probleme</description>
	<lastBuildDate>Sun, 05 Feb 2012 21:06:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Auth_imp: Die benötigte IMAP-Erweiterung wurde nicht gefunden</title>
		<link>http://www.yourhelpcenter.de/2010/09/auth_imp-die-benotigte-imap-erweiterung-wurde-nicht-gefunden/</link>
		<comments>http://www.yourhelpcenter.de/2010/09/auth_imp-die-benotigte-imap-erweiterung-wurde-nicht-gefunden/#comments</comments>
		<pubDate>Wed, 29 Sep 2010 20:43:58 +0000</pubDate>
		<dc:creator>Jockel</dc:creator>
				<category><![CDATA[Allgemeines]]></category>
		<category><![CDATA[Anleitungen]]></category>
		<category><![CDATA[Apache WebServer]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Auth_imp: Die benötigte IMAP-Erweiterung wurde nicht gefunden]]></category>
		<category><![CDATA[Auth_imp: Required IMAP extension not found.]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[Horde]]></category>
		<category><![CDATA[web-mail]]></category>
		<category><![CDATA[Webmailer]]></category>

		<guid isPermaLink="false">http://www.yourhelpcenter.de/?p=1452</guid>
		<description><![CDATA[Wenn Sie beim Einloggen in das WebMail Programm &#8220;Horde&#8221; plötzlich folgende Fehlermeldung erhalten, dann hilft Ihnen dieser Artikel weiter: Ein schwerer Fehler ist aufgetreten: Auth_imp: Die benötigte IMAP-Erweiterung wurde nicht gefunden. Details wurden für den Administrator mitgeloggt. Installieren Sie die IMAP Erweiterung für PHP (hier PHP V5) auf Ihrem Server: apt-get install php5-imap &#8230; und [...]]]></description>
			<content:encoded><![CDATA[<p>Wenn Sie beim Einloggen in das WebMail Programm &#8220;Horde&#8221; plötzlich folgende Fehlermeldung erhalten, dann hilft Ihnen dieser Artikel weiter:</p>

<div class="wp_syntax"><div class="code"><pre class="cmd" style="font-family:monospace;">Ein schwerer Fehler ist aufgetreten:
Auth_imp: Die benötigte IMAP-Erweiterung wurde nicht gefunden.
Details wurden für den Administrator mitgeloggt.</pre></div></div>

<p>Installieren Sie die IMAP Erweiterung für PHP (hier PHP V5) auf Ihrem Server:</p>

<div class="wp_syntax"><div class="code"><pre class="cmd" style="font-family:monospace;">apt-get install php5-imap</pre></div></div>

<p>&#8230; und vergessen Sie den Neustart des Apache Webservers nicht:</p>

<div class="wp_syntax"><div class="code"><pre class="cmd" style="font-family:monospace;">/etc/init.d/apache2 restart</pre></div></div>

<p>Anschließend können Sie die Anmeldung bei &#8220;Horde&#8221; erneut durchführen und werden Erfolg haben.</p>
<p>Einen Hinweis für die Fehlersuche bei Horde:<br />
Über die folgende URL können Sie auf Ihrem Server die Konfiguration von Horde testen. Dadurch können Sie leicht fehlende Abhängigkeiten entdecken und beheben:</p>

<div class="wp_syntax"><div class="code"><pre class="url" style="font-family:monospace;">http://url-zu-ihrer-horde-installation/imp/test.php</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.yourhelpcenter.de/2010/09/auth_imp-die-benotigte-imap-erweiterung-wurde-nicht-gefunden/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fatal error: Call to undefined function curl_init() in /home/&#8230;/ip-logger/&#8230;/class.ipdetails.php</title>
		<link>http://www.yourhelpcenter.de/2010/09/fatal-error-call-to-undefined-function-curl_init-in-home-ip-logger-class-ipdetails-php/</link>
		<comments>http://www.yourhelpcenter.de/2010/09/fatal-error-call-to-undefined-function-curl_init-in-home-ip-logger-class-ipdetails-php/#comments</comments>
		<pubDate>Wed, 29 Sep 2010 18:53:28 +0000</pubDate>
		<dc:creator>Jockel</dc:creator>
				<category><![CDATA[Allgemeines]]></category>
		<category><![CDATA[Anleitungen]]></category>
		<category><![CDATA[Apache WebServer]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Call to undefined function curl_init()]]></category>
		<category><![CDATA[Fatal error]]></category>
		<category><![CDATA[Fatal error: Call to undefined function curl_init() in]]></category>
		<category><![CDATA[php5-curl]]></category>

		<guid isPermaLink="false">http://www.yourhelpcenter.de/?p=1446</guid>
		<description><![CDATA[Die folgende Meldung zeigt an, dass das Modul &#8220;php5-curl&#8221; nicht installiert wurde: Fatal error: Call to undefined function curl_init() in /home/.../wp-content/plugins/.../class.ipdetails.php on line 29 Mithilfe des Befehles &#8220;apt-get install php5-curl&#8221; können Sie z.Bsp. unter Debian dieses Modul einfach nachinstallieren und nutzen.]]></description>
			<content:encoded><![CDATA[<p>Die folgende Meldung zeigt an, dass das Modul &#8220;php5-curl&#8221; nicht installiert wurde:</p>

<div class="wp_syntax"><div class="code"><pre class="cmd" style="font-family:monospace;">Fatal error: Call to undefined function curl_init() in /home/.../wp-content/plugins/.../class.ipdetails.php on line 29</pre></div></div>

<p>Mithilfe des Befehles &#8220;apt-get install php5-curl&#8221; können Sie z.Bsp. unter Debian dieses Modul einfach nachinstallieren und nutzen.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yourhelpcenter.de/2010/09/fatal-error-call-to-undefined-function-curl_init-in-home-ip-logger-class-ipdetails-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress: Deine PHP-Installation scheint nicht über die von WordPress benötigte MySQL-Erweiterung zu verfügen</title>
		<link>http://www.yourhelpcenter.de/2010/09/wordpress-deine-php-installation-scheint-nicht-uber-die-von-wordpress-benotigte-mysql-erweiterung-zu-verfugen/</link>
		<comments>http://www.yourhelpcenter.de/2010/09/wordpress-deine-php-installation-scheint-nicht-uber-die-von-wordpress-benotigte-mysql-erweiterung-zu-verfugen/#comments</comments>
		<pubDate>Tue, 28 Sep 2010 19:36:44 +0000</pubDate>
		<dc:creator>Jockel</dc:creator>
				<category><![CDATA[Allgemeines]]></category>
		<category><![CDATA[Anleitungen]]></category>
		<category><![CDATA[Apache WebServer]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Deine PHP-Installation scheint nicht Ã¼ber die von WordPress benÃ¶tigte MySQL-Erweiterung zu verfÃ¼gen]]></category>
		<category><![CDATA[Deine PHP-Installation scheint nicht über die von WordPress benötigte MySQL-Erweiterung zu verfügen]]></category>
		<category><![CDATA[php-mysql]]></category>
		<category><![CDATA[php5-mysql]]></category>
		<category><![CDATA[WP]]></category>

		<guid isPermaLink="false">http://www.yourhelpcenter.de/?p=1443</guid>
		<description><![CDATA[Beim Aufruf Ihrer Webseite erhalten Sie folgende Meldung ? Deine PHP-Installation scheint nicht über die von WordPress benötigte MySQL-Erweiterung zu verfügen. Prüfen Sie bitte, ob auf Ihrem Server die folgenden Programme (Module) richtig installiert sind: PHP mySQL php5-mysql Sollte z.Bsp. &#8220;php5-mysql&#8221; fehlen, dann können Sie unter Debian mithilfe des Befehles &#8220;apt-get install php5-mysql&#8221; dieses Modul [...]]]></description>
			<content:encoded><![CDATA[<p>Beim Aufruf Ihrer Webseite erhalten Sie folgende Meldung ?</p>

<div class="wp_syntax"><div class="code"><pre class="cmd" style="font-family:monospace;">Deine PHP-Installation scheint nicht über die von WordPress benötigte MySQL-Erweiterung zu verfügen.</pre></div></div>

<p>Prüfen Sie bitte, ob auf Ihrem Server die folgenden Programme (Module) richtig installiert sind:</p>
<ul>
<li>PHP</li>
<li>mySQL</li>
<li>php5-mysql</li>
</ul>
<p>Sollte z.Bsp. &#8220;php5-mysql&#8221; fehlen, dann können Sie unter Debian mithilfe des Befehles &#8220;apt-get install php5-mysql&#8221; dieses Modul nachinstallieren. Anschließend sollte Ihre Webseite (wieder) richtig funktionieren.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yourhelpcenter.de/2010/09/wordpress-deine-php-installation-scheint-nicht-uber-die-von-wordpress-benotigte-mysql-erweiterung-zu-verfugen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VirtualMin: PHP Prozesse automatisch beenden (zu viele PHP Prozesse)</title>
		<link>http://www.yourhelpcenter.de/2010/08/virtualmin-php-prozesse-automatisch-beenden-zu-viele-php-prozesse/</link>
		<comments>http://www.yourhelpcenter.de/2010/08/virtualmin-php-prozesse-automatisch-beenden-zu-viele-php-prozesse/#comments</comments>
		<pubDate>Sat, 07 Aug 2010 18:58:56 +0000</pubDate>
		<dc:creator>Jockel</dc:creator>
				<category><![CDATA[Apache WebServer]]></category>
		<category><![CDATA[ISP Tools]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[503]]></category>
		<category><![CDATA[Arbeitsspeicher entlasten]]></category>
		<category><![CDATA[automatically]]></category>
		<category><![CDATA[limit]]></category>
		<category><![CDATA[limits]]></category>
		<category><![CDATA[löschen]]></category>
		<category><![CDATA[processes]]></category>
		<category><![CDATA[prozesse]]></category>
		<category><![CDATA[RAM]]></category>
		<category><![CDATA[RAM sparen]]></category>
		<category><![CDATA[RAM überladen]]></category>
		<category><![CDATA[schonen]]></category>
		<category><![CDATA[schützen]]></category>
		<category><![CDATA[Service unavailable]]></category>
		<category><![CDATA[Speicher voll]]></category>
		<category><![CDATA[überlastet]]></category>
		<category><![CDATA[viele Prozesse]]></category>
		<category><![CDATA[VirtualMin]]></category>
		<category><![CDATA[virtueller server]]></category>
		<category><![CDATA[VServer]]></category>
		<category><![CDATA[WebMin]]></category>
		<category><![CDATA[Zugriffsprobleme]]></category>
		<category><![CDATA[zuviele PHP Prozesse]]></category>

		<guid isPermaLink="false">http://www.yourhelpcenter.de/?p=1379</guid>
		<description><![CDATA[Wenn Sie mit VirtualMin Ihren Server (evtl. virtuellen Server = VServer) verwalten, dann stehen Sie manchmal vor dem einfachen (aber relativ gefährlichen) Problem, dass Ihnen die PHP Prozesse Ihren verfügbaren Arbeitsspeicher (RAM) füllen. Zwar ist die Speicherverwaltung von Debian Linux darauf ausgelegt, benutzten Speicher nicht sofort wieder freizugeben, sondern dieses erst bei Bedarf zu machen. [...]]]></description>
			<content:encoded><![CDATA[<p>Wenn Sie mit VirtualMin Ihren Server (evtl. virtuellen Server = VServer) verwalten, dann stehen Sie manchmal vor dem einfachen (aber relativ gefährlichen) Problem, dass Ihnen die PHP Prozesse Ihren verfügbaren Arbeitsspeicher (RAM) füllen. Zwar ist die Speicherverwaltung von Debian Linux darauf ausgelegt, benutzten Speicher nicht sofort wieder freizugeben, sondern dieses erst bei Bedarf zu machen. Trotzdem kann dieses Verhalten Ihren Server in Performanceprobleme bringen oder Zugriffe scheitern lassen (Error 503 &#8211; &#8220;Service unavailable&#8221;).</p>
<p>Eine <strong>Lösung</strong> ist, in der VirtualMin Oberfläche die Einstellungen anzupassen:</p>
<ul>
<li>System Settings &gt; Server Templates</li>
<li>&#8220;Default Settings&#8221; anklicken<br />
Nutzen Sie für Ihre Server ein eigenes Template, nutzen Sie jenes</li>
<li>Edit template section = &#8220;Apache website&#8221;</li>
<li>Setzen Sie &#8220;Default FCGId PHP sub-processes&#8221; auf &#8220;None&#8221;</li>
<li>Klicken Sie ganz unten auf &#8220;Save&#8221;</li>
<li>Starten Sie den Apache Webserver einmal neu
<ul>
<li>Wechseln Sie in den WebMin Bereich (oben links im Bildschirm)</li>
<li>Servers &gt; Apache Webserver</li>
<li>Klicken Sie auf &#8220;Apply Changes&#8221; (oben rechts im Bildschirm)</li>
</ul>
</li>
<li>Fertig</li>
</ul>
<p>Nun werden nicht mehr benötigte PHP Prozesse sofort nach Ihrem Ablauf auch entfernt und es steht wieder mehr Server-RAM zur Verfügung.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yourhelpcenter.de/2010/08/virtualmin-php-prozesse-automatisch-beenden-zu-viele-php-prozesse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP: GUID erstellen (flexible Länge und Struktur)</title>
		<link>http://www.yourhelpcenter.de/2010/07/php-guid-erstellen-flexible-lange-und-struktur/</link>
		<comments>http://www.yourhelpcenter.de/2010/07/php-guid-erstellen-flexible-lange-und-struktur/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 17:52:09 +0000</pubDate>
		<dc:creator>Katrin</dc:creator>
				<category><![CDATA[Anleitungen]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[beispiel]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[create]]></category>
		<category><![CDATA[demo]]></category>
		<category><![CDATA[eindeutige ID]]></category>
		<category><![CDATA[Erklärung]]></category>
		<category><![CDATA[erstellen]]></category>
		<category><![CDATA[erzeugen]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[freeware]]></category>
		<category><![CDATA[G-U-I-D]]></category>
		<category><![CDATA[G-UID]]></category>
		<category><![CDATA[GUID]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Muster]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[uniqid]]></category>
		<category><![CDATA[unique ID]]></category>

		<guid isPermaLink="false">http://www.yourhelpcenter.de/?p=1361</guid>
		<description><![CDATA[Um in PHP eine GUID (Globally Unique Identifier) zu erzeugen (wie Sie sie ggf. aus C# und anderen Programmiersprachen kennen), hilft Ihnen die folgende Funktion weiter: function getGUID&#40;$len = 36&#41; &#123; $tmp = &#34;&#34;; $pos = array&#40;8,13,18,23&#41;; while &#40;strlen&#40;$tmp&#41; &#60; $len&#41; $tmp .= md5&#40;uniqid&#40;&#41;&#41;; foreach &#40;$pos as $p&#41; if &#40;$p &#60;= $len&#41; $tmp&#91;$p&#93; = &#34;-&#34;; [...]]]></description>
			<content:encoded><![CDATA[<p>Um in PHP eine <a title="Was ist eine GUID ?" href="http://de.wikipedia.org/wiki/Globally_Unique_Identifier" target="_blank">GUID</a> (Globally Unique Identifier) zu erzeugen (wie Sie sie ggf. aus C# und anderen Programmiersprachen kennen), hilft Ihnen die folgende Funktion weiter:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> getGUID<span style="color: #009900;">&#40;</span><span style="color: #000088;">$len</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">36</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$tmp</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$pos</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">8</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">13</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">18</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">23</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tmp</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&lt;</span> <span style="color: #000088;">$len</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$tmp</span> <span style="color: #339933;">.=</span> <span style="color: #990000;">md5</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">uniqid</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$pos</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$p</span><span style="color: #009900;">&#41;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$p</span> <span style="color: #339933;">&lt;=</span> <span style="color: #000088;">$len</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$tmp</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$p</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;-&quot;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">return</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tmp</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #000088;">$len</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Ausgabe (Beispiel):</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">echo</span> getGUID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
3470b4e8<span style="color: #339933;">-</span>d6fe<span style="color: #339933;">-</span>1f76<span style="color: #339933;">-</span>6c09<span style="color: #339933;">-</span>0d31828e8a1d
&nbsp;
<span style="color: #b1b100;">echo</span> getGUID<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">20</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
8b31eeb6<span style="color: #339933;">-</span>b451<span style="color: #339933;">-</span>a61d<span style="color: #339933;">-</span>f</pre></div></div>

<p>Die Lage der Trennzeichen (&#8220;-&#8221;) können Sie durch das Array &#8220;$pos&#8221; bestimmen, die Länge der GUID durch den Parameter &#8220;$len&#8221;. Wenn Sie keinen Parameter übergeben, ist die GUID automatisch 36 Zeichen lang.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yourhelpcenter.de/2010/07/php-guid-erstellen-flexible-lange-und-struktur/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP: Apache2 Version in Variable auslesen</title>
		<link>http://www.yourhelpcenter.de/2010/07/php-apache2-version-in-variable-auslesen/</link>
		<comments>http://www.yourhelpcenter.de/2010/07/php-apache2-version-in-variable-auslesen/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 17:55:32 +0000</pubDate>
		<dc:creator>Jockel</dc:creator>
				<category><![CDATA[Allgemeines]]></category>
		<category><![CDATA[Anleitungen]]></category>
		<category><![CDATA[Apache WebServer]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Sicherheit]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[apache2ctl]]></category>
		<category><![CDATA[apache2ctrl]]></category>
		<category><![CDATA[Apacherversion]]></category>
		<category><![CDATA[apachever]]></category>
		<category><![CDATA[auslesen]]></category>
		<category><![CDATA[herausfinden]]></category>
		<category><![CDATA[holen]]></category>
		<category><![CDATA[passthru]]></category>
		<category><![CDATA[Version des Webservers]]></category>

		<guid isPermaLink="false">http://www.yourhelpcenter.de/?p=716</guid>
		<description><![CDATA[Damit Sie auf einem Unix (Linux) System einfach die aktuelle Version des Apache WebServers herausfinden können, zeigen wir Ihnen ein PHP-Beispiel. In dem PHP Script wird die Apache-Funktion &#8220;apache2ctl&#8221; genutzt, die die aktuelle Apache-Version auszulesen. Dieser Befehl wird mithilfe des PHP Befehles &#8220;passthru()&#8221; direkt an das Linuxsystem weitergegeben. Hinweis: Häufig ist auf &#8220;öffentlichen&#8221; Webservern aus [...]]]></description>
			<content:encoded><![CDATA[<p>Damit Sie auf einem Unix (Linux) System einfach die aktuelle Version des Apache WebServers herausfinden können, zeigen wir Ihnen ein PHP-Beispiel.</p>
<p>In dem PHP Script wird die Apache-Funktion &#8220;apache2ctl&#8221; genutzt, die die aktuelle Apache-Version auszulesen. Dieser Befehl wird mithilfe des PHP Befehles &#8220;passthru()&#8221; direkt an das Linuxsystem weitergegeben. </p>
<p>Hinweis:<br />
Häufig ist auf &#8220;öffentlichen&#8221; Webservern aus Sicherheitsgründen die Nutzung einiger Befehle gesperrt. Dazu zählt häufig auch der Befehl &#8220;passthru()&#8221;. Wenn das Script bei Ihnen lokal auf dem Computer also einwadnfrei läuft und auf Ihrem Internetserver keine Daten zurück gibt, liegt diese Befehlssperre vor. Eine Möglichkeit, diese Sperre aufzuheben hat nur Ihr Web-Administrator (oder Provider).</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">// PHP Version auslesen</span>
<span style="color: #990000;">ob_start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">passthru</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;apache2ctl -v&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$ver</span> <span style="color: #339933;">=</span> <span style="color: #990000;">ob_get_contents</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ver</span><span style="color: #009900;">&#41;</span> 
  <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;passthru() disabled ?&quot;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">ob_end_clean</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$a</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$ver</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/(server version: ){1}(.*)/i'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$a</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$v</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$data</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$v</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/(server built:   ){1}(.*)/i'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$a</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$v</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$data</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;d.m.Y H:i:s&quot;</span><span style="color: #339933;">,</span> <span style="color: #990000;">strtotime</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$v</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #990000;">print_r</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.yourhelpcenter.de/2010/07/php-apache2-version-in-variable-auslesen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP: Zugriff von Browsern außerhalb eines IP-Subnetzes unterbinden</title>
		<link>http://www.yourhelpcenter.de/2010/07/php-zugriff-von-browsern-auserhalb-eines-ip-subnetzes-unterbinden/</link>
		<comments>http://www.yourhelpcenter.de/2010/07/php-zugriff-von-browsern-auserhalb-eines-ip-subnetzes-unterbinden/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 17:53:45 +0000</pubDate>
		<dc:creator>Jockel</dc:creator>
				<category><![CDATA[Allgemeines]]></category>
		<category><![CDATA[Anleitungen]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Sicherheit]]></category>
		<category><![CDATA[aussperren]]></category>
		<category><![CDATA[IP Adresse]]></category>
		<category><![CDATA[IP Bereich]]></category>
		<category><![CDATA[IP Filter]]></category>
		<category><![CDATA[IP filtern]]></category>
		<category><![CDATA[nur bestimmte IP Adressen]]></category>
		<category><![CDATA[testen]]></category>
		<category><![CDATA[überprüfen]]></category>
		<category><![CDATA[Zugriffe begrenzen]]></category>

		<guid isPermaLink="false">http://www.yourhelpcenter.de/?p=1282</guid>
		<description><![CDATA[Mithilfe des folgenden PHP Scripts können Sie Besucher außerhalb des festgelegten IP Bereiches blockieren: 1 2 3 4 5 6 7 8 9 10 11 12 &#60;?php if &#40;strncmp&#40;&#34;192.168.0&#34;, $_SERVER&#91;&#34;REMOTE_ADDR&#34;&#93;, 9&#41; != 0&#41; &#123; // Block access header&#40;&#34;HTTP/1.0 403 Forbidden&#34;&#41;; // header('Location: http://www.google.com'); exit; &#125; else &#123; // Allow access echo &#34;Zugriff erlaubt ...&#34;; &#125; [...]]]></description>
			<content:encoded><![CDATA[<p>Mithilfe des folgenden PHP Scripts können Sie Besucher außerhalb des festgelegten IP Bereiches blockieren:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">strncmp</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;192.168.0&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;REMOTE_ADDR&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">9</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #666666; font-style: italic;">// Block access</span>
  <span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;HTTP/1.0 403 Forbidden&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #666666; font-style: italic;">// header('Location: http://www.google.com');</span>
  <span style="color: #990000;">exit</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #666666; font-style: italic;">// Allow access</span>
  <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Zugriff erlaubt ...&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>In diesem Beispiel werden alle Besucher, deren IP Adresse nicht mit &#8220;192.168.0&#8243; anfängt, blockiert. </p>
<p>Dieser IP Bereich wird nur LAN intern verwendet. Für die Filterung von Besuchern aus dem WAN (Internet) filtern Sie bitte auf die öffentliche IP Adresse Ihrer Webseitenbesucher. Passen Sie dabei auch die Länge der zu vergleichenden Zeichen an (im o.a. Beispiel werden die ersten 9 Zeichen verglichen). Diese können Sie sich mithilfe des folgenden PHP Scripts anzeigen:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;REMOTE_ADDR&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.yourhelpcenter.de/2010/07/php-zugriff-von-browsern-auserhalb-eines-ip-subnetzes-unterbinden/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SQLite: Datenbank erstellen, Tabellen erstellen, Daten einfügen &amp; Daten abfragen</title>
		<link>http://www.yourhelpcenter.de/2010/07/sqlite-datenbank-erstellen-tabellen-erstellen-daten-einfugen-daten-abfragen/</link>
		<comments>http://www.yourhelpcenter.de/2010/07/sqlite-datenbank-erstellen-tabellen-erstellen-daten-einfugen-daten-abfragen/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 18:46:17 +0000</pubDate>
		<dc:creator>Jockel</dc:creator>
				<category><![CDATA[Allgemeines]]></category>
		<category><![CDATA[Anleitungen]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[anleitung]]></category>
		<category><![CDATA[auslesen]]></category>
		<category><![CDATA[beispiel]]></category>
		<category><![CDATA[create]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[Datei erstellen]]></category>
		<category><![CDATA[Datenbank erstellen]]></category>
		<category><![CDATA[Einführung]]></category>
		<category><![CDATA[einrichten]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[German]]></category>
		<category><![CDATA[insert]]></category>
		<category><![CDATA[Muster]]></category>
		<category><![CDATA[Schritt für Schritt]]></category>
		<category><![CDATA[select]]></category>
		<category><![CDATA[SQL Lite]]></category>
		<category><![CDATA[SQL-light]]></category>
		<category><![CDATA[sqlight]]></category>
		<category><![CDATA[SQLite]]></category>
		<category><![CDATA[SQLlite]]></category>
		<category><![CDATA[table]]></category>
		<category><![CDATA[Verbindungsaufbau]]></category>

		<guid isPermaLink="false">http://www.yourhelpcenter.de/?p=1296</guid>
		<description><![CDATA[Um eine kurze Einführung in die SQLite Datenbank zu bekommen, hilft Ihnen folgendes PHP-Script: Das Beispiel zeigt Ihnen, wie Sie zuerst eine Datenbankverbindung aufbauen (dadurch automatisch auch die Datenbankdatei erstellen) und anschließend zwei Tabellen erstellen. Danach wird jeweils ein Datensatz in eine Tabelle eingefügt und im letzten Schritt wieder zusammen ausgelesen (joind). 1 2 3 [...]]]></description>
			<content:encoded><![CDATA[<p>Um eine kurze Einführung in die <a title="Homepage SQLite" href="http://www.sqlite.org/" target="_blank">SQLite Datenbank</a> zu bekommen, hilft Ihnen folgendes PHP-Script:</p>
<p>Das Beispiel zeigt Ihnen, wie Sie zuerst eine Datenbankverbindung aufbauen (dadurch automatisch auch die Datenbankdatei erstellen) und anschließend zwei Tabellen erstellen. Danach wird jeweils ein Datensatz in eine Tabelle eingefügt und im letzten Schritt wieder zusammen ausgelesen (joind).</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Datenbank anlegen (Dateiname: &quot;test.dat&quot;)</span>
<span style="color: #000088;">$db</span> <span style="color: #339933;">=</span> <span style="color: #990000;">sqlite_open</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;test.dat&quot;</span><span style="color: #339933;">,</span> <span style="color: #208080;">0660</span><span style="color: #339933;">,</span> <span style="color: #000088;">$error</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Die Tabellen anlegen: &quot;kunde&quot; und &quot;domain&quot;</span>
<span style="color: #990000;">sqlite_query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$db</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'CREATE TABLE kunde (id integer PRIMARY KEY, code varchar(10))'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">sqlite_query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$db</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'CREATE TABLE domain (id integer, kunde integer, name varchar(10))'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Datensätze einfügen</span>
<span style="color: #990000;">sqlite_query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$db</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;INSERT INTO kunde (code) VALUES ('fnord')&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">sqlite_query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$db</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;INSERT INTO domain (id,kunde,name) VALUES (1, 1, 'www.webseite.de')&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Daten verbinden und abfragen</span>
<span style="color: #000088;">$res</span> <span style="color: #339933;">=</span> <span style="color: #990000;">sqlite_query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$db</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'select * from kunde k left join domain d on d.kunde = k.id'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$res</span> <span style="color: #339933;">=</span> <span style="color: #990000;">sqlite_fetch_all</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$res</span><span style="color: #339933;">,</span> SQLITE_ASSOC<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Ergebnis anzeigen</span>
<span style="color: #990000;">print_r</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$res</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>In unserem Beispiel hat die Datenbank den Dateinamen &#8220;test.dat&#8221;. In der Wahl des Dateinamens sind Sie nur an die Restriktionen Ihres Betriebssystems gebunden. Häufig wird jedoch auch der Suffix &#8220;.sqlite&#8221; genutzt. (Suffix = Dateiendung)</p>
<p>Um die auf Ihrem System aktuell genutzte Version von SQLite auszulesen, nutzen Sie folgenden Befehl:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">echo</span> <span style="color: #990000;">sqlite_libversion</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Wenn Sie die derzeit eingestellte Codierung herausfinden möchten:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">echo</span> <span style="color: #990000;">sqlite_libencoding</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.yourhelpcenter.de/2010/07/sqlite-datenbank-erstellen-tabellen-erstellen-daten-einfugen-daten-abfragen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP: Alter anhand des Geburtstags berechnen</title>
		<link>http://www.yourhelpcenter.de/2010/07/php-alter-anhand-des-geburtstags-berechnen/</link>
		<comments>http://www.yourhelpcenter.de/2010/07/php-alter-anhand-des-geburtstags-berechnen/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 09:16:23 +0000</pubDate>
		<dc:creator>Tumichnix</dc:creator>
				<category><![CDATA[Anleitungen]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Alter]]></category>
		<category><![CDATA[Alter in Jahren]]></category>
		<category><![CDATA[berechnen]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Codeschnipsel]]></category>
		<category><![CDATA[Codesnippet]]></category>
		<category><![CDATA[Geburtstag]]></category>
		<category><![CDATA[Schnipsel]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[sourcecode]]></category>

		<guid isPermaLink="false">http://www.yourhelpcenter.de/?p=1143</guid>
		<description><![CDATA[Mit der folgenden PHP-Funktion könnten Sie anhand des Geburtstags das aktuelle Alter in Jahren ermitteln. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 /** * Ermittelt das aktuelle Alter anhand einess Datums * @param string $birthday Der Geburstag im Format YYYY-MM-DD * @param string $delimiter Trennzeichen * @return [...]]]></description>
			<content:encoded><![CDATA[<p>Mit der folgenden PHP-Funktion könnten Sie anhand des Geburtstags das aktuelle Alter in Jahren ermitteln.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009933; font-style: italic;">/**
* Ermittelt das aktuelle Alter anhand einess Datums
* @param string $birthday Der Geburstag im Format YYYY-MM-DD
* @param string $delimiter Trennzeichen
* @return integer Das Alter in Jahren
*/</span>
<span style="color: #000000; font-weight: bold;">function</span> getAgeFromBirthday<span style="color: #009900;">&#40;</span><span style="color: #000088;">$birthday</span><span style="color: #339933;">,</span> <span style="color: #000088;">$delimiter</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'-'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$birthday</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$exp</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$delimiter</span><span style="color: #339933;">,</span> <span style="color: #000088;">$birthday</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$exp</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #cc66cc;">3</span> <span style="color: #339933;">||</span> <span style="color: #339933;">!</span><span style="color: #990000;">checkdate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>int<span style="color: #009900;">&#41;</span><span style="color: #000088;">$exp</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#40;</span>int<span style="color: #009900;">&#41;</span><span style="color: #000088;">$exp</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#40;</span>int<span style="color: #009900;">&#41;</span><span style="color: #000088;">$exp</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$age</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>int<span style="color: #009900;">&#41;</span><span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Y&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> <span style="color: #009900;">&#40;</span>int<span style="color: #009900;">&#41;</span><span style="color: #000088;">$exp</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>int<span style="color: #009900;">&#41;</span><span style="color: #000088;">$exp</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #009900;">&#40;</span>int<span style="color: #009900;">&#41;</span><span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;m&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>int<span style="color: #009900;">&#41;</span><span style="color: #000088;">$exp</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #009900;">&#40;</span>int<span style="color: #009900;">&#41;</span><span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;m&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> <span style="color: #009900;">&#40;</span>int<span style="color: #009900;">&#41;</span><span style="color: #000088;">$exp</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #009900;">&#40;</span>int<span style="color: #009900;">&#41;</span><span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;d&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$age</span><span style="color: #339933;">--;</span>
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$age</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Der Aufruf könnte z.B. so ausschauen:</p>
<p>var_dump(getAgeFromBirthday(&#8217;1995-06-08&#8242;));</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yourhelpcenter.de/2010/07/php-alter-anhand-des-geburtstags-berechnen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux: Fatal error: Call to undefined function imap_open()</title>
		<link>http://www.yourhelpcenter.de/2010/05/linux-fatal-error-call-to-undefined-function-imap_open/</link>
		<comments>http://www.yourhelpcenter.de/2010/05/linux-fatal-error-call-to-undefined-function-imap_open/#comments</comments>
		<pubDate>Fri, 07 May 2010 18:54:48 +0000</pubDate>
		<dc:creator>Günther</dc:creator>
				<category><![CDATA[Allgemeines]]></category>
		<category><![CDATA[Anleitungen]]></category>
		<category><![CDATA[Apache WebServer]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Fatal error: Call to undefined function imap_open()]]></category>
		<category><![CDATA[Horde]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[Mailprogramm]]></category>
		<category><![CDATA[php-imap]]></category>
		<category><![CDATA[phpimap]]></category>
		<category><![CDATA[undefined function imap_open()]]></category>
		<category><![CDATA[Webmail]]></category>

		<guid isPermaLink="false">http://www.yourhelpcenter.de/?p=1019</guid>
		<description><![CDATA[Wenn Sie beispielsweise nach der Installation des Webmailprogrammes &#8220;Horde&#8221; die folgende Meldung angezeigt bekommen, kann Ihnen dieser Artikel helfen: Fatal error: Call to undefined function imap_open() Grund für die Meldung ist die fehlende IMAP Unterstützung in PHP. In diesem Artikel erkläre ich die Lösung für Linux Debian lenny (V5). Andere Systeme benötigen teilweise einen kompletten [...]]]></description>
			<content:encoded><![CDATA[<p>Wenn Sie beispielsweise nach der Installation des Webmailprogrammes &#8220;Horde&#8221; die folgende Meldung angezeigt bekommen, kann Ihnen dieser Artikel helfen:</p>
<pre>Fatal error: Call to undefined function imap_open()</pre>
<p>Grund für die Meldung ist die fehlende IMAP Unterstützung in PHP. In diesem Artikel erkläre ich die Lösung für Linux Debian lenny (V5). Andere Systeme benötigen teilweise einen kompletten Neubau von PHP (= Neucompilierung / Recompiling).</p>
<p>Zuerst muss das fehlende Paket instelliert werden:</p>

<div class="wp_syntax"><div class="code"><pre class="linux" style="font-family:monospace;">apt-get install php5-imap</pre></div></div>

<p>Ihnen werden Details angezeig und am Ende werden Sie gefragt:</p>
<pre>Do you want to continue? [Y/n/?]</pre>
<p>Hier antworten Sie bitte mit &#8220;y&#8221;.</p>
<p>Die automatische Installation beginnt und kann einen kurzen Moment brauchen.<br />
Wichtig ist, dass Sie danach Ihren Apache Webserver mit einem der beiden folgenden Befehle neu starten:</p>

<div class="wp_syntax"><div class="code"><pre class="linux" style="font-family:monospace;">apache2ctl graceful
/usr/sbin/apache2ctl graceful</pre></div></div>

<p>Fertig.</p>
<p>Beim Einsatz von Horde haben wir teilweise die Cookies im Browser löschen müssen. Außerdem half häufig auch das Umsetzen der Cookie-Verarbeitung. Weitere Details finden Sie in unserem Artikel &#8220;<a href="http://www.yourhelpcenter.de/2010/05/horde-nach-dem-erfolgreichen-login-wird-wieder-der-login-angezeigt/">Horde: Nach dem erfolgreichen Login wird wieder der Login angezeigt</a>&#8220;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yourhelpcenter.de/2010/05/linux-fatal-error-call-to-undefined-function-imap_open/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

