<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comentarios en: Buscar enlaces en una cadena y convertirlos en enlaces HTML con php (preg_replace_callback).</title>
	<atom:link href="http://www.mascodigo.com/buscar-enlaces-en-una-cadena-y-convertirlos-en-enlaces-html-con-php-preg_replace_callback.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.mascodigo.com/buscar-enlaces-en-una-cadena-y-convertirlos-en-enlaces-html-con-php-preg_replace_callback.html</link>
	<description>Un gran problema son muchos problemas pequeños.</description>
	<lastBuildDate>Mon, 08 Feb 2010 09:14:49 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Por: Webmaster</title>
		<link>http://www.mascodigo.com/buscar-enlaces-en-una-cadena-y-convertirlos-en-enlaces-html-con-php-preg_replace_callback.html/comment-page-1#comment-79</link>
		<dc:creator>Webmaster</dc:creator>
		<pubDate>Wed, 03 Feb 2010 20:57:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.mascodigo.com/?p=191#comment-79</guid>
		<description>ERROR:

Warning: preg_replace_callback() [function.preg-replace-callback]: Requires argument 2, &#039;Enlaces::enlacesDetectados&#039;, to be a valid callback in C:\programas_usuario\xampp\htdocs\tmp\elink.php on line 49

Solución

Cambiar la línea:
 $this-&gt;_texto = preg_replace_callback(&quot;/(http:\/\/[\w\/*\?*\&amp;*\=*\.*]+)/&quot;,
                             &quot;Enlaces::enlacesDetectados&quot;, $this-&gt;_texto);

Por:

        $this-&gt;_texto = preg_replace_callback(&quot;/(http:\/\/[\w\/*\?*\&amp;*\=*\.*]+)/&quot;,
                             array(&quot;Enlaces&quot;, &quot;enlacesDetectados&quot;), $this-&gt;_texto);</description>
		<content:encoded><![CDATA[<p>ERROR:</p>
<p>Warning: preg_replace_callback() [function.preg-replace-callback]: Requires argument 2, &#8216;Enlaces::enlacesDetectados&#8217;, to be a valid callback in C:\programas_usuario\xampp\htdocs\tmp\elink.php on line 49</p>
<p>Solución</p>
<p>Cambiar la línea:<br />
 $this->_texto = preg_replace_callback(&#8221;/(http:\/\/[\w\/*\?*\&#038;*\=*\.*]+)/&#8221;,<br />
                             &#8220;Enlaces::enlacesDetectados&#8221;, $this->_texto);</p>
<p>Por:</p>
<p>        $this->_texto = preg_replace_callback(&#8221;/(http:\/\/[\w\/*\?*\&#038;*\=*\.*]+)/&#8221;,<br />
                             array(&#8221;Enlaces&#8221;, &#8220;enlacesDetectados&#8221;), $this->_texto);</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Gabriel</title>
		<link>http://www.mascodigo.com/buscar-enlaces-en-una-cadena-y-convertirlos-en-enlaces-html-con-php-preg_replace_callback.html/comment-page-1#comment-78</link>
		<dc:creator>Gabriel</dc:creator>
		<pubDate>Wed, 03 Feb 2010 14:51:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.mascodigo.com/?p=191#comment-78</guid>
		<description>No anda
 Warning: preg_replace_callback() [function.preg-replace-callback]: Requires argument 2,</description>
		<content:encoded><![CDATA[<p>No anda<br />
 Warning: preg_replace_callback() [function.preg-replace-callback]: Requires argument 2,</p>
]]></content:encoded>
	</item>
</channel>
</rss>
