<?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:atom="http://www.w3.org/2005/Atom"
xmlns:dc="http://purl.org/dc/elements/1.1/">

<channel>
<atom:link href="http://www.ribosomatic.com/rss.php" rel="self" type="application/rss+xml" /><title>RibosoMatic</title>
<link>http://www.ribosomatic.com/</link>
<description>Articulos informaticos de interes para nuestros visitantes</description>
<language>es-PE</language>
<copyright>(CC) 2006-2009 RibosoMatic:Blog</copyright>
<ttl>60</ttl>
<image>
<title>RibosoMatic</title>
<url>http://www.ribosomatic.com/img/logo_lite.gif</url>
<link>http://www.ribosomatic.com/</link>
<width>144</width>
<height>24</height>
<description>Articulos informaticos</description>
</image>
<item>
<title>André Karell en Acortar direcciones-url extensas con PHP (función)</title>
<link>http://www.ribosomatic.com/articulos/acortar-direcciones-url-con-php-funcion/#comentario-3310</link>
<description>Disculpa jesús, tu codigo tiene 1 error xD&lt;br /&gt;
&lt;br /&gt;
echo&quot;&amp;lt;a href=&quot;$url_larga&quot;&amp;gt;$url_corta&amp;lt;/a&amp;gt;&quot;;&lt;br /&gt;
&lt;br /&gt;
seria:&lt;br /&gt;
&lt;br /&gt;
echo&quot;&amp;lt;a href='&quot;.$url_larga.&quot;'&amp;gt;&quot;.$url_corta.&quot;&amp;lt;/a&amp;gt;&quot;;</description>
<guid isPermaLink='true'>http://www.ribosomatic.com/articulos/acortar-direcciones-url-con-php-funcion/#comentario-3310</guid>
</item>
<item>
<title>juan en Acortar direcciones-url extensas con PHP (función)</title>
<link>http://www.ribosomatic.com/articulos/acortar-direcciones-url-con-php-funcion/#comentario-2536</link>
<description>Con lo siguiente logro pasar a enlace un texto url de un comentario:&lt;br /&gt;
$textoconenlaces = preg_replace&amp;#40;&quot;!&amp;#40;http:\/\/[0-9a-zA-Z\-\._\?\&amp;\=\&amp;lt;&amp;#41;\;\,\#\%\/]*&amp;#41;!e&quot; , &quot;'&amp;lt;a href=\&quot;\\1\&quot; target=\&quot;_blank\&quot;&amp;gt;\\1\&amp;lt;/a&amp;gt;'&quot;, $textoconenlaces&amp;#41;;&lt;br /&gt;
&lt;br /&gt;
Pero cuando aplico la siguiente función para además de linkear una url ingresada como texto quiere acortarla no me funciona:&lt;br /&gt;
&amp;lt;?&lt;br /&gt;
&lt;br /&gt;
function reducirurl&amp;#40;$url, $largo_de_la_url&amp;#41; {&lt;br /&gt;
&lt;br /&gt;
$url_reducida = substr&amp;#40;$url, 0, $largo_de_la_url&amp;#41;;&lt;br /&gt;
if &amp;#40;strlen&amp;#40;$url&amp;#41; &amp;gt; $largo_de_la_url&amp;#41;{ $url_reducida .= '...';}&lt;br /&gt;
return $url_reducida;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function mostrandourl&amp;#40;$textoconenlaces&amp;#41; {&lt;br /&gt;
$textoconenlaces = preg_replace&amp;#40;&quot;!&amp;#40;http:\/\/[0-9a-zA-Z\-\._\?\&amp;\=\&amp;lt;&amp;#41;\;\,\#\%\/]*&amp;#41;!e&quot; , &quot;'&amp;lt;a href=\&quot;\\1\&quot; target=\&quot;_blank\&quot;&amp;gt;'.reducirurl&amp;#40;\&quot;\\1\&quot;,30&amp;#41;.'&amp;lt;/a&amp;gt;'&quot;, $textoconenlaces&amp;#41;;&lt;br /&gt;
return $textoconenlaces;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Alguna sugerencia de porqué no funiona ??</description>
<guid isPermaLink='true'>http://www.ribosomatic.com/articulos/acortar-direcciones-url-con-php-funcion/#comentario-2536</guid>
</item>
<item>
<title>jesusvld en Acortar direcciones-url extensas con PHP (función)</title>
<link>http://www.ribosomatic.com/articulos/acortar-direcciones-url-con-php-funcion/#comentario-2527</link>
<description>Interesante pregunta. Será cuestión de hacer una investigación al respecto.</description>
<guid isPermaLink='true'>http://www.ribosomatic.com/articulos/acortar-direcciones-url-con-php-funcion/#comentario-2527</guid>
</item>
<item>
<title>Carlos Mena en Acortar direcciones-url extensas con PHP (función)</title>
<link>http://www.ribosomatic.com/articulos/acortar-direcciones-url-con-php-funcion/#comentario-2524</link>
<description>Como lograr direcciones &amp;#40;URL&amp;#41; en PHP no más cortas si no legibles o amigables como las de su sitio, utilizando un servidor IIS?</description>
<guid isPermaLink='true'>http://www.ribosomatic.com/articulos/acortar-direcciones-url-con-php-funcion/#comentario-2524</guid>
</item>
<item>
<title>Lobsang en Acortar direcciones-url extensas con PHP (función)</title>
<link>http://www.ribosomatic.com/articulos/acortar-direcciones-url-con-php-funcion/#comentario-2519</link>
<description>Algo mejor :D me alegro..</description>
<guid isPermaLink='true'>http://www.ribosomatic.com/articulos/acortar-direcciones-url-con-php-funcion/#comentario-2519</guid>
</item>
</channel>
</rss>