<?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>Jonathan Ernst &#187; conversion</title>
	<atom:link href="http://ernstfamily.ch/jonathan/tag/conversion/feed/" rel="self" type="application/rss+xml" />
	<link>http://ernstfamily.ch/jonathan</link>
	<description>Mon site Web personnel</description>
	<lastBuildDate>Sat, 14 Jan 2012 14:29:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=442</generator>
		<item>
		<title>Converting PHP scripts that still use &#171;&#160;short-tags&#160;&#187;</title>
		<link>http://ernstfamily.ch/jonathan/2009/09/converting-php-scripts-that-still-use-short-tags/</link>
		<comments>http://ernstfamily.ch/jonathan/2009/09/converting-php-scripts-that-still-use-short-tags/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 11:56:27 +0000</pubDate>
		<dc:creator>jernst</dc:creator>
				<category><![CDATA[blog.swisszone.ch]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[planet.ubuntu.com]]></category>
		<category><![CDATA[conversion]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://ernstfamily.ch/jonathan/?p=516</guid>
		<description><![CDATA[This is a translation of an older article (original in French).

If you kept bad habits or you just got some old PHP scripts that were still using PHP short tags (i.e. (&#60;? ?&#62; instead of &#60;?php ?&#62;) which are ...]]></description>
			<content:encoded><![CDATA[<p>This is a translation of an older article (<a href="http://ernstfamily.ch/jonathan/2009/06/conversion-de-scripts-php-utilisant-les-%C2%AB%C2%A0short-tags%C2%A0%C2%BB/">original in French</a>).</p>
<p>If you kept bad habits or you just got some old PHP scripts that were still using PHP short tags (i.e. (<em>&lt;? ?&gt;</em> instead of <em>&lt;?php ?&gt;</em>) which are disabled by default in current PHP versions, the following script (<a href="../uploads/shorttags.sh">shorttags.sh</a>) is for you:</p>
<blockquote>
<pre>#!/bin/sh
find "$@" -name "*.php" -exec perl -i -wpe 's/&lt;\?=/&lt;?php echo /g' {} \; \
-exec perl -i -wpe 's/&lt;\?(?!php|xml)/&lt;?php /g' {} \;</pre>
</blockquote>
<p>After downloading this script, make it executable:</p>
<blockquote>
<pre>chmod +x shorttags.sh</pre>
</blockquote>
<p>Then you can use it like this (don&#8217;t forget to make a backup of your precious scripts, you never know&#8230;):</p>
<blockquote>
<pre>./shorttags.sh /path/to/your/php/files/</pre>
</blockquote>
<p>Note that you can specify more than one path from this command line.</p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://ernstfamily.ch/jonathan/2009/09/converting-php-scripts-that-still-use-short-tags/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  ernstfamily.ch/jonathan/tag/conversion/feed/ ) in 0.33098 seconds, on May 18th, 2012 at 4:12 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on May 18th, 2012 at 6:59 am UTC -->
