<?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>IRL Geek &#187; php</title>
	<atom:link href="http://irlgeek.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://irlgeek.com</link>
	<description>Being a geek is awesome!</description>
	<lastBuildDate>Sat, 12 Nov 2011 08:30:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>WordPress 3.0 is out!</title>
		<link>http://irlgeek.com/geekstuff/wordpress-3-0-is-out/</link>
		<comments>http://irlgeek.com/geekstuff/wordpress-3-0-is-out/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 16:47:55 +0000</pubDate>
		<dc:creator>Panos Oikonomakis</dc:creator>
				<category><![CDATA[/*Geek Stuff*/]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://irlgeek.com/?p=174</guid>
		<description><![CDATA[WORDPRESS FRENZYYYYYYYYYY! This blog now runs on WordPress 3.0! Check the new cool features in this video: -]]></description>
			<content:encoded><![CDATA[<p><a href="http://irlgeek.com/wp-content/uploads/2010/06/wordpress.png"><img class="alignleft size-thumbnail wp-image-168" title="Wordpress" src="http://irlgeek.com/wp-content/uploads/2010/06/wordpress-150x150.png" alt="Wordpress" width="150" height="150" /></a>WORDPRESS FRENZYYYYYYYYYY!</p>
<p>This blog now runs on WordPress 3.0!</p>
<p>Check the new cool features in this video:</p>
<p><span id="more-174"></span></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="360" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="flashvars" value="guid=BQtfIEY1&amp;amp;amp;width=640&amp;amp;amp;height=360&amp;amp;amp;locksize=no&amp;amp;amp;dynamicseek=false&amp;amp;amp;qc_publisherId=p-18-mFEk4J448M" /><param name="src" value="http://v.wordpress.com/wp-content/plugins/video/flvplayer.swf?ver=1.21" /><param name="wmode" value="transparent" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="640" height="360" src="http://v.wordpress.com/wp-content/plugins/video/flvplayer.swf?ver=1.21" allowfullscreen="true" wmode="transparent" flashvars="guid=BQtfIEY1&amp;amp;amp;width=640&amp;amp;amp;height=360&amp;amp;amp;locksize=no&amp;amp;amp;dynamicseek=false&amp;amp;amp;qc_publisherId=p-18-mFEk4J448M"></embed></object></p>
<p>-</p>
]]></content:encoded>
			<wfw:commentRss>http://irlgeek.com/geekstuff/wordpress-3-0-is-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2 Domains &#8211; 1 install &#8211; WordPress</title>
		<link>http://irlgeek.com/geekstuff/2-domains-1-install-wordpress/</link>
		<comments>http://irlgeek.com/geekstuff/2-domains-1-install-wordpress/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 20:15:31 +0000</pubDate>
		<dc:creator>Panos Oikonomakis</dc:creator>
				<category><![CDATA[/*Geek Stuff*/]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://irlgeek.com/?p=167</guid>
		<description><![CDATA[Today I encountered this problem: I had one folder with a WordPress install and the client asked me to be accessible from two domain names. Since it is shared hosting, and the primary domain is irrelevant, I couldn&#8217;t use the Add-on domain option. Also the re-direction is not acceptable &#8211; the client wanted www.mydomain1.com and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://irlgeek.com/wp-content/uploads/2010/06/wordpress.png"><img class="alignleft size-medium wp-image-168" title="Wordpress" src="http://irlgeek.com/wp-content/uploads/2010/06/wordpress-300x267.png" alt="Wordpress" width="180" height="160" /></a>Today I encountered this problem: I had one folder with a <a title="WordPress" href="http://www.wordpress.org">WordPress</a> install and the client asked me to be accessible from two domain names.</p>
<p>Since it is shared hosting, and the primary domain is irrelevant, I couldn&#8217;t use the Add-on domain option. Also the re-direction is not acceptable &#8211; the client wanted www.mydomain1.com and www.mydomain2.com to appear as different websites with the same content.</p>
<p><span id="more-167"></span>The solution I followed was this:</p>
<blockquote>
<pre><code>$hostname = $_SERVER['SERVER_NAME'];
$hostname = str_replace('www.', '', $hostname);
if ($hostname == 'mydomain1.com') {
define('WP_SITEURL', 'http://mydomain1.com');
define('WP_HOME', 'http://mydomain1.com');
}</code></pre>
</blockquote>
<p>From here: <a href="http://wordpress.org/support/topic/158824">http://wordpress.org/support/topic/158824</a></p>
<p>This code is placed in wp-config.php (BACK UP EVERYTHING BEFORE TRYING THIS SOLUTION!!!). This code can be used with multiple domains &#8211; just use the if&#8230;else method in php.</p>
<p>My second problem was that the theme used a script which was reading images from the folder and it was  recognised as an external domain from the original install (mind=blown). The solution was to give absolute urls.</p>
<p>I changed this (not accurate):</p>
<blockquote>
<pre><code>&lt;img src="&lt;?php get_bloginfo('template')?&gt;/wp-content/themes/bpress_mag/timthumb.php?src=&lt;?php echo get_post_meta( $post-&gt;ID, "image_value", true ); ?&gt;&amp;amp;w=590&amp;amp;h=353&amp;amp;zc=1" border="0" alt="&lt;?php the_title(); ?&gt;" /&gt;</code></pre>
</blockquote>
<p>To this:</p>
<blockquote>
<pre><code>&lt;img src="http://www.mydomain1.com/wp-content/themes/bpress_mag/timthumb.php?src=&lt;?php echo get_post_meta( $post-&gt;ID, "image_value", true ); ?&gt;&amp;amp;w=590&amp;amp;h=353&amp;amp;zc=1" border="0" alt="&lt;?php the_title(); ?&gt;" /&gt;</code></pre>
</blockquote>
<p>This was the trick!</p>
]]></content:encoded>
			<wfw:commentRss>http://irlgeek.com/geekstuff/2-domains-1-install-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>E.Press &#8211; Η πτυχιακή μου</title>
		<link>http://irlgeek.com/geekstuff/e-press-%ce%b7-%cf%80%cf%84%cf%85%cf%87%ce%b9%ce%b1%ce%ba%ce%ae-%ce%bc%ce%bf%cf%85/</link>
		<comments>http://irlgeek.com/geekstuff/e-press-%ce%b7-%cf%80%cf%84%cf%85%cf%87%ce%b9%ce%b1%ce%ba%ce%ae-%ce%bc%ce%bf%cf%85/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 18:04:35 +0000</pubDate>
		<dc:creator>Panos Oikonomakis</dc:creator>
				<category><![CDATA[/*Geek Stuff*/]]></category>
		<category><![CDATA[epress]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[xml]]></category>
		<category><![CDATA[πτυχιακη]]></category>

		<guid isPermaLink="false">http://irlgeek.com/?p=68</guid>
		<description><![CDATA[Μετά απο 8 μήνες δουλειάς, τρέξιμο για τις εκτυπώσεις κτλ, είναι έτοιμη! Όπως υποσχέθηκα θα την αναρτήσω εδώ, ώστε να είναι δημόσια ανοιχτή και -αν χρησιμεύσει σε κάποιον-  ο πηγαίος κώδικας. Η εργασία αφορά ενα πρακτορείο ηλεκτρονικής διανομής τύπου, όπου τα προϊόντα μπορούν είτε να αγοραστούν ψηφιακά είτε έντυπα. Περιέχει μια απλή διαχείρηση της βάσης [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://irlgeek.com/wp-content/uploads/2010/02/icon_128.png"><img class="alignleft size-full wp-image-70" title="E.press" src="http://irlgeek.com/wp-content/uploads/2010/02/icon_128.png" alt="epress" width="128" height="128" /></a>Μετά απο 8 μήνες δουλειάς, τρέξιμο για τις εκτυπώσεις κτλ, είναι έτοιμη!</p>
<p>Όπως υποσχέθηκα θα την αναρτήσω εδώ, ώστε να είναι δημόσια ανοιχτή και -αν χρησιμεύσει σε κάποιον-  ο πηγαίος κώδικας.</p>
<p>Η εργασία αφορά ενα πρακτορείο ηλεκτρονικής διανομής τύπου, όπου τα προϊόντα μπορούν είτε να αγοραστούν ψηφιακά είτε έντυπα. Περιέχει μια απλή διαχείρηση της βάσης δεδομένων και είναι γραμμένο εξολοκλήρου σε php. Επίσης χρησιμοποιούνται xml,mxml (Flex), js και CSS.</p>
<p><span id="more-68"></span>Το διαχειριστικό τμήμα της εφαρμογής είναι γραμμένο σε Flex με χρήση Database Administration και μερικά tweaks. Για το full source απλα επικοινωνήστε μαζί μου.</p>
<p><a title="E.Press" href="http://thecompany.gr/epress" target="_blank">Δειτε το site εδώ</a></p>
<p><a title="E.Press Admin" href="http://thecompany.gr/epress/admin" target="_blank">Και το admin panel εδώ</a> Username: admin Password: Admin (case sensitive)</p>
<p>Σημειωσεις:</p>
<ul>
<li>Για να δειτε on-line καποιο εντυπο πρεπει να το παραγγειλετε ετσι.</li>
<li>Για να μπορεσετε να το δειτε, πηγαινετε στις παραγγελιες και καντε το Πληρωμενο σε Yes.</li>
<li>Δεν κατεχω κανενα δικαιωμα στα προϊοντα που εμφανίζονται στην ιστοσελίδα . Η ιστοσελίδα είναι φτιαγμένη για εργασία σχολής που εχει παρουσιαστεί και κατατεθεί</li>
<li>Αν εχετε παρατηρήσεις ή ιδεές παρακαλώ επικοινωνήστε μαζι μου.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://irlgeek.com/geekstuff/e-press-%ce%b7-%cf%80%cf%84%cf%85%cf%87%ce%b9%ce%b1%ce%ba%ce%ae-%ce%bc%ce%bf%cf%85/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

