<?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>zoe.vc &#187; php</title>
	<atom:link href="http://www.zoe.vc/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zoe.vc</link>
	<description>development &#38; freelancing blog</description>
	<lastBuildDate>Mon, 30 Jan 2012 07:03:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Simple MySQL Backup at Google Code</title>
		<link>http://www.zoe.vc/2009/simple-mysql-backup-at-google-code/</link>
		<comments>http://www.zoe.vc/2009/simple-mysql-backup-at-google-code/#comments</comments>
		<pubDate>Sun, 27 Sep 2009 13:02:29 +0000</pubDate>
		<dc:creator>Alex (zoe.vc)</dc:creator>
				<category><![CDATA[Backup]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[mySQL]]></category>
		<category><![CDATA[mysqldump]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[zip]]></category>

		<guid isPermaLink="false">http://www.zoe.vc/?p=143</guid>
		<description><![CDATA[A while ago I wrote an article about a script I created to backup databases. Since then I had to make little changes and decided to put it to Google code as Open-Source-Project and released the new version 0.1.1 with some minor changes. If you're interested in the script, head over to its project page [...]]]></description>
			<content:encoded><![CDATA[<p>A while ago I wrote an article about a script I created to backup databases. Since then I had to make little changes and decided to put it to Google code as Open-Source-Project and released the new version 0.1.1 with some minor changes.</p>
<p>If you're interested in the script, head over to<a href="http://code.google.com/p/simple-mysql-backup/"> its project page</a> and check the appropriate pages like the <a href="http://code.google.com/p/simple-mysql-backup/wiki/Changelog">Changelog</a> and the<a href="http://code.google.com/p/simple-mysql-backup/wiki/InstallationAndUsage"> Installation and Requirements page</a>. Feel free <a href="http://code.google.com/p/simple-mysql-backup/downloads/list">to download</a> and <a href="http://www.zoe.vc/2009/simple-mysql-backup-at-google-code/#respond">comment  it</a>.</p>
<p>UPDATE: <a href="http://github.com/dArignac/Simple-MySQL-Backup">You can find the project now on github!</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.zoe.vc/2009/simple-mysql-backup-at-google-code/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MySQL Backup Skript mit Emailversand.</title>
		<link>http://www.zoe.vc/2009/mysql-backup-skript-mit-emailversand/</link>
		<comments>http://www.zoe.vc/2009/mysql-backup-skript-mit-emailversand/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 17:30:41 +0000</pubDate>
		<dc:creator>Alex (zoe.vc)</dc:creator>
				<category><![CDATA[Backup]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[mySQL]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.zoe.vc/?p=69</guid>
		<description><![CDATA[A while ago I found a good script for backing up a MySQL database and sending it via email to a recipient here. The script is cool, but I didn't like its structure and the fact, that you have to add the database values inline and that it can only backup a single database. For [...]]]></description>
			<content:encoded><![CDATA[<div class="jLanguage">
<ul>
<li><a href="?lan=english"><img alt="english" src="http://www.zoe.vc/wp-content/plugins/jLanguage/icons/en.png" /></a></li>
<li><a href="?lan=german"><img alt="german" src="http://www.zoe.vc/wp-content/plugins/jLanguage/icons/de.png" /></a></li>
</ul>
</div>
<p>A while ago I found a good script for backing up a MySQL database and sending it via email to a recipient <a href="http://www.gmeditor.com/wiki/code-downloads/mysql-backup/">here</a>.</p>
<p>The script is cool, but I didn't like its structure and the fact, that you have to add the database values inline and that it can only backup a single database. For this reason I rewrote it a little and you can download it here.</p>
<p>Features:</p>
<ul>
<li>Backup of mutliple databases</li>
<li>Sending of backups to multiple users</li>
</ul>
<p>For every single database a mail is send and there is no file saved on the server. And wow: it's really easy to configure!</p>
<p>How do I use it?</p>
<ul>
<li><a href="http://www.zoe.vc/misc/mysqlbackup-0.1.rar">Download the current version (0.1)</a><a rel="attachment wp-att-73" href="http://www.zoe.vc/?attachment_id=73"> </a></li>
<li>Adjust the backup.php (you're getting help by my wonderful comments)</li>
<li>upload everything to a directory of your choice</li>
<li>if applicable, create a cronjob to periodically execute the script</li>
</ul>
<p>And here the backup.php that calls the appropriate classes and executes the backup (also included in the download):</p>
<pre class="php"><a href="http://www.php.net/ini_set"><span style="color: #000066;">ini_set</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'error_reporting'</span>, <span style="color: #000000; font-weight: bold;">E_ALL</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #808080; font-style: italic;">// include the files</span>
<span style="color: #b1b100;">require_once</span> <span style="color: #ff0000;">'MySQLConfig.php'</span>;
<span style="color: #b1b100;">require_once</span> <span style="color: #ff0000;">'MySQLBackup.php'</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">// add some databases to backup</span>
<span style="color: #808080; font-style: italic;">// the domain will be appended to the email subject and is also included within the sql file for identification.</span>
<span style="color: #0000ff;">$cfgHost0</span> = <span style="color: #000000; font-weight: bold;">new</span> MySQLConfig<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'username0'</span>, <span style="color: #ff0000;">'password0'</span>, <span style="color: #ff0000;">'database_name0'</span>, <span style="color: #ff0000;">'domain0'</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0000ff;">$cfgHost1</span> = <span style="color: #000000; font-weight: bold;">new</span> MySQLConfig<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'username1'</span>, <span style="color: #ff0000;">'password1'</span>, <span style="color: #ff0000;">'database_name1'</span>, <span style="color: #ff0000;">'domain1'</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #0000ff;">$backup</span> = <span style="color: #000000; font-weight: bold;">new</span> MySQLBackup<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #808080; font-style: italic;">// the path to the directory where this script is resided</span>
<span style="color: #0000ff;">$backup</span>-&amp;gt;setExecutionPath<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'/srv/domain/backup/'</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #808080; font-style: italic;">// add the database configs to backup</span>
<span style="color: #0000ff;">$backup</span>-&amp;gt;addDatabaseToBackup<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$cfgHost0</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0000ff;">$backup</span>-&amp;gt;addDatabaseToBackup<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$cfgHost1</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #808080; font-style: italic;">// the sender of the backup mail</span>
<span style="color: #0000ff;">$backup</span>-&amp;gt;setSender<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'admin@yourdomain.com'</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #808080; font-style: italic;">// add some people to receive the backup</span>
<span style="color: #0000ff;">$backup</span>-&amp;gt;addRecipient<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'john@yourdomain.com'</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0000ff;">$backup</span>-&amp;gt;addRecipient<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'frank@yourdomain.com'</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #808080; font-style: italic;">// execute the whole thing</span>
<span style="color: #0000ff;">$backup</span>-&amp;gt;backup<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</pre>
<p>If there are any problems or suggestions or feature wishes, please comment this post - thanks!</p>
<p>PS: to create a cronjob log into your server using SSH, then execute "crontab -e" to edit the crontab and insert for example "0 2 * * 0,3 wget http://yourdomain.com/backup/backup.php -nc -q -O /dev/null" for an execution on sunday and wednesday at 2 am. Save and close the whole thing with ":wq" and that's it <img src='http://www.zoe.vc/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.zoe.vc/2009/mysql-backup-skript-mit-emailversand/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>TYPO3 und UTF-8 mySQL Datenbank</title>
		<link>http://www.zoe.vc/2009/typo3-und-utf-8-mysql-datenbank/</link>
		<comments>http://www.zoe.vc/2009/typo3-und-utf-8-mysql-datenbank/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 16:01:16 +0000</pubDate>
		<dc:creator>Alex (zoe.vc)</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[TYPO3]]></category>
		<category><![CDATA[kodierung]]></category>
		<category><![CDATA[kollation]]></category>
		<category><![CDATA[mySQL]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Typo3]]></category>
		<category><![CDATA[utf-8]]></category>

		<guid isPermaLink="false">http://www.zoe.vc/?p=46</guid>
		<description><![CDATA[Manchmal ist es nötig, die Datenbank von Typo3 auf UTF-8 umzustellen, da man arabische Zeichen oder was auch immer speichern will, und wobei die Kollation der Datenbank latin1_swedish_ci, mit der sich Typo3 standardmäßig installiert, nicht taugt. Dazu habe ich diesen nützlichen Blogeintrag von Markus Giesen gefunden: Typo3 mySQL-Datenbank auf UTF-8 umstellen bzw. konvertieren Jedoch ist [...]]]></description>
			<content:encoded><![CDATA[<p>Manchmal ist es nötig, die Datenbank von Typo3 auf UTF-8 umzustellen, da man arabische Zeichen oder was auch immer speichern will, und wobei die Kollation der Datenbank <em>latin1_swedish_ci</em>, mit der sich Typo3 standardmäßig installiert, nicht taugt.</p>
<p>Dazu habe ich diesen nützlichen Blogeintrag von Markus Giesen gefunden: <a href="http://blog.markusgiesen.de/2007/07/29/typo3-mysql-datenbank-auf-utf-8-umstellen/">Typo3 mySQL-Datenbank auf UTF-8 umstellen bzw. konvertieren</a></p>
<p>Jedoch ist bei mir im Export nie die Kollation festgeschrieben, diesen Schritt konnte ich de facto überspringen. Auch hatte ich keinen phpMyAdmin, also mussten die Kommandos für die SQL-Konsole zum Anpassen der Kollation her:</p>
<p>Anzeigen der verfügbaren Kollationen auf dem Server:</p>
<pre class="sql"><span style="color: #993333; font-weight: bold;">SHOW</span> COLLATION
<span style="color: #993333; font-weight: bold;">SHOW</span> COLLATION <span style="color: #993333; font-weight: bold;">LIKE</span> <span style="color: #ff0000;">'utf%'</span></pre>
<p>Ändern der Kollation der aktuellen Datenbank:</p>
<pre class="sql"><span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">DATABASE</span> <span style="color: #993333; font-weight: bold;">DEFAULT</span> COLLATE utf8_general_ci</pre>
<p>Und danach weiter nach Markus Giesens Anleitung verfahren und alles wird gut <img src='http://www.zoe.vc/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.zoe.vc/2009/typo3-und-utf-8-mysql-datenbank/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse PDT 2.0 Stable Release</title>
		<link>http://www.zoe.vc/2008/eclipse-pdt-20-stable-release/</link>
		<comments>http://www.zoe.vc/2008/eclipse-pdt-20-stable-release/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 20:45:42 +0000</pubDate>
		<dc:creator>Alex (zoe.vc)</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[pdt]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.zoe.vc/?p=39</guid>
		<description><![CDATA[Juhu - es ist da! Das erste stabile Release vom PDT Plugin für Eclipse Ganymede (na zumindest das erste, was ich da sehe ^^) Laut Projektplan hätte gestern die M1 da sein sollen - vielleicht ist ja das Stable damit gemeint. Ich hoffe meine Vorfreude wird nicht getrübt, denn ausprobieren konnte ich es bisher noch [...]]]></description>
			<content:encoded><![CDATA[<p>Juhu - es ist da! Das <a href="http://www.eclipse.org/pdt/downloads/">erste stabile Release vom PDT Plugin</a> für Eclipse Ganymede (na zumindest das erste, was ich da sehe ^^)</p>
<p>Laut <a href="http://www.eclipse.org/pdt/plans/php_plan_2_0.php">Projektplan</a> hätte gestern die M1 da sein sollen - vielleicht ist ja das Stable damit gemeint. Ich hoffe meine Vorfreude wird nicht getrübt, denn ausprobieren konnte ich es bisher noch nicht, das wird dann wohl morgen mal der Fall sein.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zoe.vc/2008/eclipse-pdt-20-stable-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Typo3: erstellbare Elemente auf Seite limitieren.</title>
		<link>http://www.zoe.vc/2008/erstellbare-elemente-auf-seite-limitieren/</link>
		<comments>http://www.zoe.vc/2008/erstellbare-elemente-auf-seite-limitieren/#comments</comments>
		<pubDate>Sat, 16 Feb 2008 10:39:59 +0000</pubDate>
		<dc:creator>Alex (zoe.vc)</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[TYPO3]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Typo3]]></category>
		<category><![CDATA[typoscript]]></category>

		<guid isPermaLink="false">http://www.zoe.vc/2008/erstellbare-elemente-auf-seite-limitieren/</guid>
		<description><![CDATA[[german]In Typo3 ist es des öfteren sinnvoll, die erstellbaren Elemente auf einer Seite zu limitieren. Vor allem bei SysFoldern in denen man jeweils nur bestimmte Elemente speichern will macht das Sinn, denn im SysFolder "Nutzer" möchte ich eher keine anderen Elemente haben. Außerdem erhöht das die Übersichtlichkeit und bringt Redakteure nicht dazu, neue Elemente "einfach [...]]]></description>
			<content:encoded><![CDATA[<p>[german]In Typo3 ist es des öfteren sinnvoll, die erstellbaren Elemente auf einer Seite zu limitieren. Vor allem bei SysFoldern in denen man jeweils nur bestimmte Elemente speichern will macht das Sinn, denn im SysFolder "Nutzer" möchte ich eher keine anderen Elemente haben. Außerdem erhöht das die Übersichtlichkeit und bringt Redakteure nicht dazu, neue Elemente "einfach irgendwohin" zu speichern.</p>
<p>In der TSConfig der entsprechenden Seite muss man einfach nur:</p>
<p><code>mod.web_list.allowedNewTables = db_tablename,db_tablename_2</code></p>
<p>angeben, wobei db_tablename entsprechend die Namen der Datenbanktabellen der Elemente sind.</p>
<p>[/german]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zoe.vc/2008/erstellbare-elemente-auf-seite-limitieren/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configure Mercury mail transport system for external mail</title>
		<link>http://www.zoe.vc/2008/mercury-mail-transport-system-fur-externe-mail-konfigurieren/</link>
		<comments>http://www.zoe.vc/2008/mercury-mail-transport-system-fur-externe-mail-konfigurieren/#comments</comments>
		<pubDate>Sat, 05 Jan 2008 16:28:03 +0000</pubDate>
		<dc:creator>Alex (zoe.vc)</dc:creator>
				<category><![CDATA[Email]]></category>
		<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[mercury]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[sendmail]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://www.zoe.vc/2008/mercury-mail-transport-system-fur-externe-mail-konfigurieren/</guid>
		<description><![CDATA[Usually I develope my projects locally on my pc. Needless to say that you sometimes have to send an email from your script to external mail to check if everything is fine. So you need to configure your system in a way that your local apache webserver is able to send mail to external addresses. [...]]]></description>
			<content:encoded><![CDATA[<div class="jLanguage">
<ul>
<li><a href="?lan=english"><img alt="english" src="http://www.zoe.vc/wp-content/plugins/jLanguage/icons/en.png" /></a></li>
<li><a href="?lan=german"><img alt="german" src="http://www.zoe.vc/wp-content/plugins/jLanguage/icons/de.png" /></a></li>
</ul>
</div>
<p>Usually I develope my projects locally on my pc. Needless to say that you sometimes have to send an email from your script to external mail to check if everything is fine. So you need to configure your system in a way that your local apache webserver is able to send mail to external addresses.<br />
I always use <a title="XAMPP fÃ¼r Windows" href="http://www.apachefriends.org/de/xampp-windows.html">XAMPP for Windows</a> because it contains everything you need for developing PHP applications as well as all the stuff for sending mails: fake sendmail und Mercury Mail Transport System. I reference to XAMPP 1.6.5 (for Windows) and Mercury 4.5 here. Mercury is already pre-configured in XAMPP - all settings that I don't explicitly address stay as they are <img src='http://www.zoe.vc/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I'm writing this because I'm not a mail professional and read a lot of tutorials and none of them really worked. So I extracted what I needed and put it all together. An <strong>important assumption</strong> for this tutorial is that you have your <strong>own SMTP server</strong>, for example the one that your webspace hoster provides.</p>
<p>So let's get started:</p>
<ol>
<li>start Mercury (using the XAMPP Controlpanel) and then open the admin panel.</li>
<li>first of all we disable the HTTP server of Mercury so that it doesn't conflict with the apache:
<ol>
<li>"Configuration" -&gt; "Protocol modules"</li>
<li>disable the check "MercuryB HTTP web server"</li>
<li>I also disabled "Mercury IMAP4rev1 server" because I won't need that one</li>
<li>leave the window opened, we'll need it immediatly</li>
</ol>
</li>
<li>to be able to send external mail we have to disable "MercuryE SMTP end-to-end delivery client" in the same dialog and enable "MercuryC SMTP relaying client". Click "OK" and restart Mercury!</li>
<li>now let's configure Mercury in general:
<ol>
<li>"Configuration" -&gt; "Mercury core module", tab "General"</li>
<li>we want to send from localhost, therefore we check if "localhost" is the value of "internet name for this system" and adjust that if not</li>
<li>all other settings stay the same as they are already configured, but we'll have a look to the checkboxes beneath:</li>
<li>disable all but "Send copies of all errors to postmaster"</li>
<li>check under the tab "Local domains" if the entry "localhost (local host or server) localhost (internet name)" is there, if not, add it</li>
<li>click "OK" and leave the dialog</li>
</ol>
</li>
<li>next we focus on the MercuryS SMTP Server for outgoing emails:
<ol>
<li>"Configuration" -&gt; "MercuryS SMTP Server"</li>
<li>choose the tab "General" and add a wonderful name for your SMTP server under "Announce myself as", simply fill in any name, I've chosen "CS SMTP".</li>
<li>under "Listen on TCP/IP port" fill in "25", that's the SMTP port</li>
<li>add "127.0.0.1" to "IP interface to use", that's the local IP of your pc. With the IP of the pc within the network (192.168.0.X) it doesn't work (at least for me)</li>
<li>now we limit the access to the server so that only our local machine can access it:
<ol>
<li>under "Connection Control" click on "Add restriction" and add the IP range from "127.0.0.1" till "127.0.0.1" (it's that simple, isn't it?)...</li>
<li>and select "Allow connections"...</li>
<li>and leave all checkboxes deselected</li>
</ol>
</li>
<li>with a click on "OK" we quit the dialog and we're looking forward to the next one <img src='http://www.zoe.vc/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ol>
</li>
<li>now let's  configure the MercuryP POP3 Server:
<ol>
<li>"Configuration"-&gt; "MercuryP POP3 Server", select the tab "General"</li>
<li>"Listen on TCP port" -&gt; "110" and "IP interface to use" -&gt; "127.0.0.1"</li>
<li>choose the tab "Connection control" and proceed as already written under 5.5 (see above)</li>
<li>that's it already, leave the dialog by clicking "OK"</li>
</ol>
</li>
<li>now we have the important one "MercuryC SMTP Client"
<ol>
<li>"Configuration" -&gt; "MercuryC SMTP Client"</li>
<li>to send mail to external addresses we need to have an external SMTP server. If you're renting webspace somewhere and have mail included then you normally have access to a SMTP server. My webspace is hosted at HostEurope and I'll use the SMTP of my domain. Without such an external server the whole thing won't work because domain names won't be resolved among other things. I've chosen this path because I didn't feel like configuring around the whole day.</li>
<li>enter the address of your SMTP under "Smart host name", for example "mail.meinedomain.com"</li>
<li>depending on the way you access the server fill the values under "Connection port/type":
<ol>
<li>for a "normal" SMTP that would probably be port 25 and "Normal (no SSL encryption)"</li>
<li>I access my SMTP via SSL, that would be port 465 and "SSL encryption using direct connection"</li>
<li>if you have other parameters simply try around a little <img src='http://www.zoe.vc/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </li>
</ol>
</li>
<li>we finally fill in the "Login username" and the "Password" that normally is supplied by your webhost and we've nearly finished...</li>
</ol>
</li>
<li>let's check the Mercury users that are normally pre-configured:
<ol>
<li>"Configuration"-&gt; "Manage local users"</li>
<li>there should be at least the users "Admin" and "postmaster", both with administrative rights. If not you have to add them.</li>
</ol>
</li>
<li>now we finished with Mercury, but we still need to configure PHP for sending mail with our scripts:
<ol>
<li>we search and open the appropriate php.ini, using XAMPP you find it under "xampp/php/php.ini" in newer version and under  "xampp/apache/bin/php.ini" in older versions</li>
<li>we search for "[mail function]"...</li>
<li>and we add/adjust the following:
<ol>
<li>"SMTP = localhost"</li>
<li>"smtp_port = 25"</li>
<li>"sendmail_from = postmaster@localhost"</li>
</ol>
</li>
<li>save the php.ini and restart the Apache</li>
</ol>
</li>
<li>now everything should work! But we'll test it first:
<ol>
<li>within Mercury choose "File" -&gt; "Send mail message" and send an email for testing purposes, I've chosen to send it to my googlemail account</li>
<li>if the windows in Mercury are at sixes and sevens, choose "Window" -&gt; "Tile" enjoy the view</li>
<li>within the window "Mercury Core Prozess" we'll see our test mail at first:
<ol>
<li>"13:38:41 JOB XXXXXX: from postmaster@localhost (local) To: XXX@googlemail.com (non-local) (JOB XXXXXX) -OK"</li>
</ol>
</li>
<li>the mail was received in Mercury and processed, after some seconds the window "Mercury SMTP client (relay version)" should show some actions:
<ol>
<li>"05 Jan 2008 13:39, Servicing job XXXXXX ...OK"</li>
<li>if you see this message, everything went fine and the mail was sent!</li>
<li>if you don't get the message you have to find out why, possible reasons could be:
<ol>
<li>wrong connection values for the SMTP server</li>
<li>SMTP server doesn't allow relaying (from your host)</li>
</ol>
</li>
</ol>
</li>
<li>now we'll test the whole thing from a PHP script and we'll write a wonderful one-liner into a PHP file:
<ol>
<li>"mail('xxx@googlemail.com', 'Mercury test mail', 'If you can read this, everything was fine!');"</li>
<li>call the PHP file within your browser, a command window should pop up shortly (or maybe not), it's from the fake sendmail of XAMPP, and focus back on Mercury:
<ol>
<li>the produre is the same as above only that the SMTP server receives the mail from php before everything else happens</li>
<li>you can watch this in the window "Mercury SMTP Server" and should see something like this: <a title="Mercury SMTP" rel="lightbox[mercury]" href="http://www.zoe.vc/wp-content/mercury_smtp.png">Mercury SMTP</a></li>
</ol>
</li>
</ol>
</li>
</ol>
</li>
</ol>
<p>I hope that worked for you, if not, feel free to leave a comment but as I already said, I'm not a professional but I'll help you as far as I can!</p>
<p><strong>EDIT:</strong><br />
If you get the error message "SMTP server response: 553 We do not relay non-local mail, sorry." while sending from PHP go to Mercury under MercuryS -&gt; Connection Control -&gt; "Uncheck Do not Permit SMTP relaying to non-local mail" an check this option. Should fix the problem. Thanks to ron!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zoe.vc/2008/mercury-mail-transport-system-fur-externe-mail-konfigurieren/feed/</wfw:commentRss>
		<slash:comments>250</slash:comments>
		</item>
		<item>
		<title>WebService mit PHP Server und Java Client</title>
		<link>http://www.zoe.vc/2007/webservice-mit-php-server-und-java-client/</link>
		<comments>http://www.zoe.vc/2007/webservice-mit-php-server-und-java-client/#comments</comments>
		<pubDate>Mon, 19 Nov 2007 20:16:49 +0000</pubDate>
		<dc:creator>Alex (zoe.vc)</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[jax-ws]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[webservice]]></category>
		<category><![CDATA[wsdl]]></category>

		<guid isPermaLink="false">http://www.zoe.vc/2007/webservice-mit-php-server-und-java-client/</guid>
		<description><![CDATA[For my current private project that answers to the nice name "Telrunya" I'm trying to access a PHP web service through a Java client. I once heard in a .NET codecamp that WebServices are super cool and that it doesn't matter in which language they are implemented. But that doesn't apply if you're communication between [...]]]></description>
			<content:encoded><![CDATA[<div class="jLanguage">
<ul>
<li><a href="?lan=english"><img alt="english" src="http://www.zoe.vc/wp-content/plugins/jLanguage/icons/en.png" /></a></li>
<li><a href="?lan=german"><img alt="german" src="http://www.zoe.vc/wp-content/plugins/jLanguage/icons/de.png" /></a></li>
</ul>
</div>
<p>For my current private project that answers to the nice name "Telrunya" I'm trying to access a PHP web service through a Java client. I once heard in a .NET codecamp that WebServices are super cool and that it doesn't matter in which language they are implemented. But that doesn't apply if you're communication between 2 different technologies. In the Guxx blog I found the reversed case, <a href="http://guxx.de/2007/05/24/vereinigung-von-java-und-php/" target="_blank">how to access a java server through a PHP client</a>. There is also a Java bridge developed by Zend that manages the conversion of the objects. But that seems to be an independent server or at least a server modul but that isn't considered by me. (furthermore it costs money)</p>
<p>Anyway, I tried the whole thing withion NetBeans IDE with <a href="https://jax-ws.dev.java.net/" target="_blank">JAX-WS</a>. My WSDL file (document) written in Eclipse was successfully parsed and the Java files for client etc. were created. The client was also able to access the service but it failed to convert the values. Monitoring the HTTP traffic I can see that the right values are returned, but the Java client returns "null". I already read a lot of documentations and tutorials but I didn't find out  anything about converting the received data.<br />
Maybe someone has an advide for me?</p>
<p>Well, the old school alternative works but it is lond winded. Therefore I simply create an URL in Java, set my SOAP function as "RequestProperty" and send an handmade (or even by <a href="http://www.soapui.org" target="_blank">soapUI</a> created) SOAP envelope. The result is the corresponding envelope returned that now has to be stripped and the relevant data has to be extracted. It could be so simply with JAX-WS but isn't....</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zoe.vc/2007/webservice-mit-php-server-und-java-client/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>WebServices testen mit soapUI</title>
		<link>http://www.zoe.vc/2007/webservices-testen-mit-soapui/</link>
		<comments>http://www.zoe.vc/2007/webservices-testen-mit-soapui/#comments</comments>
		<pubDate>Sat, 17 Nov 2007 20:13:33 +0000</pubDate>
		<dc:creator>Alex (zoe.vc)</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[WebServices]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[soap]]></category>
		<category><![CDATA[webservice]]></category>
		<category><![CDATA[wsdl]]></category>

		<guid isPermaLink="false">http://www.zoe.vc/2007/webservices-testen-mit-soapui/</guid>
		<description><![CDATA[Seit einiger Zeit beschäftige ich mich WebServices im Rahmen eines Projektes mit ein paar Freunden. Aktuell arbeite ich auch gerade wieder an einem privaten Projekt, welches WebServices nutzt. Geschrieben ist ein Service ja relativ schnell, wobei "schreiben" da eher nicht ganz passt. Ich nutze hauptsächlich Eclipse mit WST, wobei der Editor da einige Bugs hat, [...]]]></description>
			<content:encoded><![CDATA[<p>Seit einiger Zeit beschäftige ich mich WebServices im Rahmen eines Projektes mit ein paar Freunden. Aktuell arbeite ich auch gerade wieder an einem privaten Projekt, welches WebServices nutzt.<br />
Geschrieben ist ein Service ja relativ schnell, wobei "schreiben" da eher nicht ganz passt. Ich nutze hauptsächlich Eclipse mit WST, wobei der Editor da einige Bugs hat, Refactoring funktioniert meistens nicht und die normale Generation einer WSDL ist auch nicht ganz sauber.<br />
Um also zu testen, ob meine WSDL und der entsprechende SoapServer (habe ich bisher nur in PHP gemacht) richtig definiert und implementiert sind, verwende ich soapUI. Das ist eine sehr coole Java-Applikation, mit der man WebServices eben testen kann: einfach in der Bedienung und übersichtlich. Ich nutze das meist wirklich nur, um zu prüfen, ob die gewünschten Daten bei entsprechender Eingabe zurückgesendet werden.<br />
soapUI erstellt auch automatisch anhand der WSDL Beispielanfragen mit den benötigten Parametern, aber es kann noch viel mehr: es ist eine ganze Testumgebung für WebServices inklusive Validierung, LoadTests und WebService Simulation. Da ich bisher noch nicht so weit gekommen bin, mal Tests für Serviceanfragen zu erstellen, kann ich zum Rest nicht wirklich viel sagen. Aber wer sich dafür interessiert, sollte sich das Programm mal anschauen.</p>
<p><a href="http://www.soapui.org" target="_blank">http://www.soapui.org</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.zoe.vc/2007/webservices-testen-mit-soapui/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

