<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>Johny Hardcore PHP Developer Hamburg and the World - PHP</title>
    <link>http://johny.info/</link>
    <description>Johny, PHP Developer from Hamburg working around whole Europe</description>
    <dc:language>de</dc:language>
    <admin:errorReportsTo rdf:resource="mailto:" />
    <generator>Serendipity 0.8.3 - http://www.s9y.org/</generator>
    
    <image>
        <url>http://johny.info/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Johny Hardcore PHP Developer Hamburg and the World - PHP - Johny, PHP Developer from Hamburg working around whole Europe</title>
        <link>http://johny.info/</link>
        <width>100</width>
        <height>21</height>
    </image>
<item>
    <title>SimpleXML und CDATA</title>
    <link>http://johny.info/archives/262-SimpleXML-und-CDATA.html</link>
<category>PHP</category>    <comments>http://johny.info/archives/262-SimpleXML-und-CDATA.html#comments</comments>
    <wfw:comment>http://johny.info/wfwcomment.php?cid=262</wfw:comment>
    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://johny.info/rss.php?version=2.0&amp;type=comments&amp;cid=262</wfw:commentRss>
    <author>johny@johny.info (Johny)</author>
    <content:encoded>
Das Problem, das die PHP funktion simplexml_load_string die CDATA tags komplett ingnoriert&lt;br /&gt;
hatte ich früher schonmal, jetzt hab ich zum glück ne Lösung dafür gefunden.&lt;br /&gt;
&lt;a href=&quot;http://noecho.de/blog/simplexml-und-cdata&quot;&gt;http://noecho.de/blog/simplexml-und-cdata&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Wie es geht steht mitlweweile übrigends auch im &lt;a href=&quot;http://de.php.net/manual/en/function.simplexml-load-string.php&quot;&gt;PHP Manual.&lt;/a&gt;&lt;br /&gt;
&lt;blockquote&gt;simplexml_load_string($xmlstring, 'SimpleXMLElement', LIBXML_NOCDATA);&lt;/blockquote&gt;&lt;br /&gt;
    </content:encoded>
    <pubDate>Tue, 31 Mar 2009 15:40:59 +0200</pubDate>
    <guid isPermaLink="false">http://johny.info/archives/262-guid.html</guid>
    </item>
<item>
    <title>Meisterprorammierer aus der realen Welt</title>
    <link>http://johny.info/archives/230-Meisterprorammierer-aus-der-realen-Welt.html</link>
<category>PHP</category>    <comments>http://johny.info/archives/230-Meisterprorammierer-aus-der-realen-Welt.html#comments</comments>
    <wfw:comment>http://johny.info/wfwcomment.php?cid=230</wfw:comment>
    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://johny.info/rss.php?version=2.0&amp;type=comments&amp;cid=230</wfw:commentRss>
    <author>johny@johny.info (Johny)</author>
    <content:encoded>
Häufig gibt es in der Programmierung mehrere Lösungen für ein Problem.&lt;br /&gt;
&lt;br /&gt;
Ich habe da gerade eine sehr tolle Lösung gefungen und werde sie hier mal vereinfacht darstellen&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
function get_auto($typ,$marke){&lt;br /&gt;
if($marke=&quot;VW){&lt;br /&gt;
     if($typ=&quot;golf&quot;){&lt;br /&gt;
                            $carclass=&quot;kleinwagen&quot;;&lt;br /&gt;
                            $topspeed=&quot;150&quot;;&lt;br /&gt;
                            $preis=&quot;20.000EUR&quot;;                            &lt;br /&gt;
    }&lt;br /&gt;
     elseif($typ=&quot;passat&quot;){&lt;br /&gt;
      ...&lt;br /&gt;
     }else{&lt;br /&gt;
                            $carclass=&quot;Auto nicht gefunden&quot;;&lt;br /&gt;
                            $topspeed=&quot;Auto nicht gefunden&quot;;&lt;br /&gt;
                            $preis=&quot;Auto nicht gefunden&quot;;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
if($marke=&quot;Ford&quot;){&lt;br /&gt;
........&lt;br /&gt;
}&lt;br /&gt;
return $carclass.&quot;|&quot;.$topspeed.&quot;|&quot;.$preis;&lt;br /&gt;
}&lt;br /&gt;
// aufruf der funktion in einer anderen Klasse.&lt;br /&gt;
list($MeinAutoCarrclass,$MeinAutoTopspeed,$MeinAutoPreis) = explode(&quot;|&quot;,get_auto($type,$model));&lt;br /&gt;
&lt;/blockquote&gt;&lt;br /&gt;
Ist sowas noch normal?&lt;br /&gt;
Es gibt übrigends nicht 2 oder 3 Autos sondern so 50. Im Orginalprogramm was anderes.&lt;br /&gt;
Wo haben leute die sowas schreiben Programmieren gelernt ? &lt;br /&gt;
Wie kann jemand mit Hochschulabschluss solchen code produzieren?&lt;br /&gt;
Mir entzieht sich das jeglicher grundlage, scheint aber ein Trend zu sein ich bin nur am kotzen wenn ich mich durch sowas durchwühlen ich hatte echt Praktikanten (Mediengestaltung) die haben besser programmiert.&lt;br /&gt;
Wozu beschäftige ich mich mit OOP, Frameworks, Ajax, XML, Soap, SOA, Design Patterns wenn andere Leute einfach solchen dreck hinflattern, endprodukt läuft doch, bis auf den Bug den ich gerade daran fixe!&lt;br /&gt;
&lt;br /&gt;
    </content:encoded>
    <pubDate>Wed, 06 Aug 2008 02:44:00 +0200</pubDate>
    <guid isPermaLink="false">http://johny.info/archives/230-guid.html</guid>
    </item>
<item>
    <title>Senior PHP Consultant</title>
    <link>http://johny.info/archives/212-Senior-PHP-Consultant.html</link>
<category>PHP</category>    <comments>http://johny.info/archives/212-Senior-PHP-Consultant.html#comments</comments>
    <wfw:comment>http://johny.info/wfwcomment.php?cid=212</wfw:comment>
    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://johny.info/rss.php?version=2.0&amp;type=comments&amp;cid=212</wfw:commentRss>
    <author>johny@johny.info (Johny)</author>
    <content:encoded>
&lt;a href=&quot;http://www.webconsults.eu&quot;&gt;Senior PHP Consultant&lt;/a&gt;, ist meine Berufsbezeichnung im Vertrag, ich finde das klingt schon schöner als Webentwickler oder &lt;a href=&quot;http://www.webconsults.eu/categories/1-Development&quot;&gt;Webdeveloper&lt;/a&gt; allerdings der Consulting teil ist dabei immer noch weniger als der Teil in dem Entwickelt wird, im prinzip auchnicht schlecht aber so muss ich wenigstens nicht nur labern sondern kann neben &lt;a href=&quot;http://www.webconsults.eu/categories/3-PHP&quot;&gt;PHP&lt;/a&gt; und &lt;a href=&quot;http://www.webconsults.eu/categories/6-Database&quot;&gt;Oracle&lt;/a&gt; auchnoch &lt;a href=&quot;http://www.webconsults.eu/categories/2-JavaScript&quot;&gt;JavaScript&lt;/a&gt; coden&lt;br /&gt;
Die folgenden 3 Monate werde ich dann mal in München verbringen bevor es für mich wieder zurück nach &lt;a href=&quot;http://www.johny.info/categories/15-Hamburg&quot;&gt;Hamburg &lt;/a&gt;oder &lt;a href=&quot;http://www.johny.info/categories/14-Niederlande&quot;&gt;Holland&lt;/a&gt; geht&lt;br /&gt;
    </content:encoded>
    <pubDate>Mon, 07 Apr 2008 14:19:00 +0200</pubDate>
    <guid isPermaLink="false">http://johny.info/archives/212-guid.html</guid>
    </item>
<item>
    <title>Enum in Propel / Symfony</title>
    <link>http://johny.info/archives/194-Enum-in-Propel-Symfony.html</link>
<category>PHP</category>    <comments>http://johny.info/archives/194-Enum-in-Propel-Symfony.html#comments</comments>
    <wfw:comment>http://johny.info/wfwcomment.php?cid=194</wfw:comment>
    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://johny.info/rss.php?version=2.0&amp;type=comments&amp;cid=194</wfw:commentRss>
    <author>johny@johny.info (Johny)</author>
    <content:encoded>
Spiele gerade mit Propel rum und anscheinend unterstützt Propel kein ENUM bzw SET da diese Datentypen lediglich von MySQL und Postgeresql unterstützt werden.&lt;br /&gt;
siehe: &lt;a href=&quot;http://propel.phpdb.org/trac/ticket/77&quot;&gt;http://propel.phpdb.org/trac/ticket/77&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Mögliche lösung wäre eine externe Hilfstabelle oder ein CHAR bzw INTEGER field und spätere validierung der eingabe. .. &lt;br /&gt;
&lt;br /&gt;
    </content:encoded>
    <pubDate>Wed, 09 Jan 2008 02:57:34 +0100</pubDate>
    <guid isPermaLink="false">http://johny.info/archives/194-guid.html</guid>
    </item>
<item>
    <title>Symfoclips</title>
    <link>http://johny.info/archives/193-Symfoclips.html</link>
<category>PHP</category>    <comments>http://johny.info/archives/193-Symfoclips.html#comments</comments>
    <wfw:comment>http://johny.info/wfwcomment.php?cid=193</wfw:comment>
    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://johny.info/rss.php?version=2.0&amp;type=comments&amp;cid=193</wfw:commentRss>
    <author>johny@johny.info (Johny)</author>
    <content:encoded>
Symfony plugin für Eclipse gleich mal downloaden und testen&lt;br /&gt;
&lt;a href=&quot;http://noy.cc/symfoclipse/&quot;&gt;http://noy.cc/symfoclipse/&lt;/a&gt;    </content:encoded>
    <pubDate>Tue, 08 Jan 2008 02:46:05 +0100</pubDate>
    <guid isPermaLink="false">http://johny.info/archives/193-guid.html</guid>
    </item>
<item>
    <title>Symfony mit empfindlichen config Files</title>
    <link>http://johny.info/archives/188-Symfony-mit-empfindlichen-config-Files.html</link>
<category>PHP</category>    <comments>http://johny.info/archives/188-Symfony-mit-empfindlichen-config-Files.html#comments</comments>
    <wfw:comment>http://johny.info/wfwcomment.php?cid=188</wfw:comment>
    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://johny.info/rss.php?version=2.0&amp;type=comments&amp;cid=188</wfw:commentRss>
    <author>johny@johny.info (Johny)</author>
    <content:encoded>
Beim rumspielen mit Symfony ist mir eben die Empfindlichkeit der config files aufgefallen,&lt;br /&gt;
ich bekam die Fehlermeldung &quot;No connection params set for propel&quot; die ersten 2-3 Support Forum Einträge verrieten mir soviel wie ja ich weiss nicht was ich geändert habe aber jetzt gehts.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://http://www.symfony-project.org/forum/index.php/m/21110/&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
1) How exactly does your database.yml look like? Are lines correctly indented by two spaces where they should be?&lt;/blockquote&gt;&lt;br /&gt;
Verkehrtes setzen von nur einem Statt 2 Leerzeichen in der database.yml genau daran lag es bei mir korrigiert und dann läuft es.&lt;br /&gt;
    </content:encoded>
    <pubDate>Mon, 10 Dec 2007 00:29:18 +0100</pubDate>
    <guid isPermaLink="false">http://johny.info/archives/188-guid.html</guid>
    </item>
<item>
    <title>Ärger mit Soap und PHP, tags zu früh geschlossen</title>
    <link>http://johny.info/archives/186-AErger-mit-Soap-und-PHP,-tags-zu-frueh-geschlossen.html</link>
<category>PHP</category>    <comments>http://johny.info/archives/186-AErger-mit-Soap-und-PHP,-tags-zu-frueh-geschlossen.html#comments</comments>
    <wfw:comment>http://johny.info/wfwcomment.php?cid=186</wfw:comment>
    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://johny.info/rss.php?version=2.0&amp;type=comments&amp;cid=186</wfw:commentRss>
    <author>johny@johny.info (Johny)</author>
    <content:encoded>
Beim versuch mit SOAP auf einen PHP Webservice zuzugreifen zeigte sich bei mir zunächst unerwartetes verhalten,&lt;br /&gt;
genau wie in diesem &lt;a href=&quot;http://bugs.php.net/bug.php?id=33366&quot;&gt;Bugreport&lt;/a&gt; wurde der erste parameter nicht interpretiert und der xml tag für die funktion zu früh geschlossen.&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
Expected result:&lt;br /&gt;
----------------&lt;br /&gt;
&lt;ns1:getOperationCount&gt;&lt;br /&gt;
&lt;startDate&gt;2005-04-01&lt;/startDate&gt;&lt;br /&gt;
&lt;endDate&gt;2005-04-30&lt;/endDate&gt;&lt;br /&gt;
&lt;/ns1:getOperationCount&gt;&lt;br /&gt;
&lt;br /&gt;
Actual result:&lt;br /&gt;
--------------&lt;br /&gt;
&lt;ns1:getOperationCount/&gt;&lt;br /&gt;
&lt;startDate&gt;2005-04-01&lt;/startDate&gt;&lt;br /&gt;
&lt;endDate&gt;2005-04-30&lt;/endDate&gt;&lt;br /&gt;
&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Die &lt;a href=&quot;http://de.php.net/manual/en/function.soap-soapclient-soapcall.php&quot;&gt;PHP Dokumentation &lt;/a&gt; der Funktion &lt;br /&gt;
&lt;a href=&quot;http://de.php.net/manual/en/function.soap-soapclient-soapcall.php&quot;&gt;SoapClient-&gt;__soapCall()&lt;/a&gt; ist leider nicht so exact aussagefähig. Allerdings wird habe ich  auch auf einer sehr alten PHP Version laufen lassen somit ist nicht auszuschliessen das es mitlerweile anders läuft.&lt;br /&gt;
&lt;br /&gt;
Die korrekte aufbauweise des Parameter Arrays habe ich dann aus dem &lt;a href=&quot;http://bugs.php.net/bug.php?id=33366&quot;&gt;Bugreport&lt;/a&gt; entnommen.&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
 $arrParameter=array('RemoteFunction' =&gt; array(&lt;br /&gt;
                                    'parameter1' =&gt; $paramater1,&lt;br /&gt;
                                    'parameter2' =&gt; $paramater2,&lt;br /&gt;
                                    ));&lt;br /&gt;
		                      &lt;br /&gt;
		  try{&lt;br /&gt;
		      &lt;br /&gt;
		      $objResult=$this-&gt;objSoapClient-&gt;__soapCall('RemoteFunction',$arrParameter, NULL,$this-&gt;objSoapHeader);&lt;br /&gt;
&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    </content:encoded>
    <pubDate>Wed, 28 Nov 2007 17:34:44 +0100</pubDate>
    <guid isPermaLink="false">http://johny.info/archives/186-guid.html</guid>
    </item>
<item>
    <title>Wunderkasten XAJAX?</title>
    <link>http://johny.info/archives/175-Wunderkasten-XAJAX.html</link>
<category>PHP</category>    <comments>http://johny.info/archives/175-Wunderkasten-XAJAX.html#comments</comments>
    <wfw:comment>http://johny.info/wfwcomment.php?cid=175</wfw:comment>
    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://johny.info/rss.php?version=2.0&amp;type=comments&amp;cid=175</wfw:commentRss>
    <author>johny@johny.info (Johny)</author>
    <content:encoded>
Habe mich heute mal mit dem Wunderkasten &lt;a href=&quot;http://www.xajaxproject.org/&quot;&gt;XAJAX &lt;/a&gt; beschäftigt, &lt;br /&gt;
sicher war es nicht so optimal eingebaut, daher gelang es mir auchnicht rauszufinden wo nun eigentlich die Funktionen aufgerufen werden und habe etwas getrickst indem ich mittels XAJAX::canProcessRequest(); abfragte ob gerade eine ajax anfrage oder eine ganz normale Browser anfrage die Page lädt.&lt;br /&gt;
Generell halte ich eine klare Trennung von &quot;AJAX Server&quot; und &quot;Webpage&quot; für sinnvoll aber war hier leider nunmal nicht der fall.&lt;br /&gt;
Trotzdem mächtiges tool vorallem das man die JS Funktionen nichtmehr selber coden muss sondern XAJAX die Javascript generierung weitestgehend übernimmt.    </content:encoded>
    <pubDate>Mon, 22 Oct 2007 18:12:42 +0200</pubDate>
    <guid isPermaLink="false">http://johny.info/archives/175-guid.html</guid>
    </item>
<item>
    <title>String für Dateinamen umwandeln</title>
    <link>http://johny.info/archives/144-String-fuer-Dateinamen-umwandeln.html</link>
<category>PHP</category>    <comments>http://johny.info/archives/144-String-fuer-Dateinamen-umwandeln.html#comments</comments>
    <wfw:comment>http://johny.info/wfwcomment.php?cid=144</wfw:comment>
    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://johny.info/rss.php?version=2.0&amp;type=comments&amp;cid=144</wfw:commentRss>
    <author>johny@johny.info (Johny)</author>
    <content:encoded>
Wenn man mal einen string mit in der subdomain verwenden will zur Suchmaschinen Optimierung&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;function domainstring($string){&lt;br /&gt;
        $string=preg_replace(&quot;/([-])/&quot;,&quot;&quot;,$string);&lt;br /&gt;
&lt;br /&gt;
        $string=preg_replace(&quot;/([^0-9a-zA-Z-])/&quot;,&quot;_&quot;,$string);&lt;br /&gt;
        while(stristr($string,&quot;__&quot;)){&lt;br /&gt;
        $string=preg_replace(&quot;/&lt;u&gt;_/&quot;,&quot;&lt;/u&gt;&quot;,$string);&lt;br /&gt;
        }&lt;br /&gt;
        $result=$string;&lt;br /&gt;
return $result;&lt;br /&gt;
}&lt;br /&gt;
&lt;/i&gt;&lt;br /&gt;
uralte funktion von mir bischen komisch gelöst aber finds okay    </content:encoded>
    <pubDate>Tue, 22 May 2007 20:47:50 +0200</pubDate>
    <guid isPermaLink="false">http://johny.info/archives/144-guid.html</guid>
    </item>
<item>
    <title>PHP5 RSS feed in Webseite einbauen</title>
    <link>http://johny.info/archives/51-PHP5-RSS-feed-in-Webseite-einbauen.html</link>
<category>PHP</category>    <comments>http://johny.info/archives/51-PHP5-RSS-feed-in-Webseite-einbauen.html#comments</comments>
    <wfw:comment>http://johny.info/wfwcomment.php?cid=51</wfw:comment>
    <slash:comments>3</slash:comments>
    <wfw:commentRss>http://johny.info/rss.php?version=2.0&amp;type=comments&amp;cid=51</wfw:commentRss>
    <author>johny@johny.info (Johny)</author>
    <content:encoded>
Ein echter Dreizeiler jeder der sich frei fuehlt darf meinen feed einbauen .... &lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
$blogentrys = simplexml_load_file('http://blog.johny.info/feeds/index.rss2');&lt;br /&gt;
 foreach($blogentrys-&gt;channel-&gt;item as $blogentry){&lt;br /&gt;
 	echo &quot;&amp;lt;a href=\&quot;&quot;.$blogentry-&gt;link.&quot;\&quot;&amp;gt;&quot;.$blogentry-&gt;title.&quot;&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt:&quot;;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
  &lt;/blockquote&gt;    </content:encoded>
    <pubDate>Sun, 12 Nov 2006 23:45:27 +0100</pubDate>
    <guid isPermaLink="false">http://johny.info/archives/51-guid.html</guid>
    </item>
</channel>
</rss>

