<?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>Michoacano&#039;s Blog &#187; PHP</title>
	<atom:link href="http://michoacano.com.mx/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://michoacano.com.mx</link>
	<description>Blog de un mundialmente conocido habitante del estado de Michoacán. Estudiante del Tecnológico de Morelia, nerd, geek, cinéfilo, metalero, ateo y algo de activista.</description>
	<lastBuildDate>Wed, 11 Jan 2012 19:45:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Actualizar estado de facebook desde PHP y CURL</title>
		<link>http://michoacano.com.mx/actualizar-estado-de-facebook-desde-php-y-curl/</link>
		<comments>http://michoacano.com.mx/actualizar-estado-de-facebook-desde-php-y-curl/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 16:03:33 +0000</pubDate>
		<dc:creator>julio</dc:creator>
				<category><![CDATA[Programación]]></category>
		<category><![CDATA[CURL]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://michoacano.com.mx/?p=3225</guid>
		<description><![CDATA[&#60;?PHP /******************************* * Facebook Status Updater * Christian Flickinger * http://nexdot.net/blog * April 20, 2007 *******************************/ &#160; $status = 'YOUR_STATUS'; $first_name = 'YOUR_FIRST_NAME'; $login_email = 'YOUR_LOGIN_EMAIL'; $login_pass = 'YOUR_PASSWORD'; &#160; $ch = curl_init&#40;&#41;; curl_setopt&#40;$ch, CURLOPT_URL, 'https://login.facebook.com/login.php?m&#38;amp;next=http%3A%2F%2Fm.facebook.com%2Fhome.php'&#41;; curl_setopt&#40;$ch, CURLOPT_POSTFIELDS,'email='.urlencode&#40;$login_email&#41;.'&#38;pass='.urlencode&#40;$login_pass&#41;.'&#38;login=Login'&#41;; curl_setopt&#40;$ch, CURLOPT_POST, 1&#41;; curl_setopt&#40;$ch, CURLOPT_HEADER, 0&#41;; curl_setopt&#40;$ch, CURLOPT_FOLLOWLOCATION, 1&#41;; curl_setopt&#40;$ch, CURLOPT_SSL_VERIFYPEER, false&#41;; curl_setopt&#40;$ch, CURLOPT_COOKIEJAR, &#34;my_cookies.txt&#34;&#41;; curl_setopt&#40;$ch, CURLOPT_COOKIEFILE, [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?PHP</span>
<span style="color: #666666; font-style: italic;">/*******************************
*	Facebook Status Updater
*	Christian Flickinger
*	http://nexdot.net/blog
*	April 20, 2007
*******************************/</span>
&nbsp;
<span style="color: #000088;">$status</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'YOUR_STATUS'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$first_name</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'YOUR_FIRST_NAME'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$login_email</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'YOUR_LOGIN_EMAIL'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$login_pass</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'YOUR_PASSWORD'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$ch</span> <span style="color: #339933;">=</span> <span style="color: #990000;">curl_init</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_URL<span style="color: #339933;">,</span> <span style="color: #0000ff;">'https://login.facebook.com/login.php?m&amp;amp;next=http%3A%2F%2Fm.facebook.com%2Fhome.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_POSTFIELDS<span style="color: #339933;">,</span><span style="color: #0000ff;">'email='</span><span style="color: #339933;">.</span><span style="color: #990000;">urlencode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$login_email</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&amp;pass='</span><span style="color: #339933;">.</span><span style="color: #990000;">urlencode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$login_pass</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&amp;login=Login'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_POST<span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_HEADER<span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_FOLLOWLOCATION<span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_SSL_VERIFYPEER<span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_COOKIEJAR<span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;my_cookies.txt&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_COOKIEFILE<span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;my_cookies.txt&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_RETURNTRANSFER<span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_USERAGENT<span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">curl_exec</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_POST<span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_URL<span style="color: #339933;">,</span> <span style="color: #0000ff;">'http://m.facebook.com/home.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$page</span> <span style="color: #339933;">=</span> <span style="color: #990000;">curl_exec</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_POST<span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/name=&quot;post_form_id&quot; value=&quot;(.*)&quot; \/&gt;'</span><span style="color: #339933;">.</span><span style="color: #990000;">ucfirst</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$first_name</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'/'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$page</span><span style="color: #339933;">,</span> <span style="color: #000088;">$form_id</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_POSTFIELDS<span style="color: #339933;">,</span><span style="color: #0000ff;">'post_form_id='</span><span style="color: #339933;">.</span><span style="color: #000088;">$form_id</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&amp;status='</span><span style="color: #339933;">.</span><span style="color: #990000;">urlencode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$status</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&amp;update=Update'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_URL<span style="color: #339933;">,</span> <span style="color: #0000ff;">'http://m.facebook.com/home.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">curl_exec</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://michoacano.com.mx/actualizar-estado-de-facebook-desde-php-y-curl/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Código PHP para enviar comentarios automáticamente en WordPress</title>
		<link>http://michoacano.com.mx/codigo-php-para-enviar-comentarios-automaticamente-en-wordpress/</link>
		<comments>http://michoacano.com.mx/codigo-php-para-enviar-comentarios-automaticamente-en-wordpress/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 14:45:50 +0000</pubDate>
		<dc:creator>julio</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programación]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://michoacano.com.mx/?p=3203</guid>
		<description><![CDATA[Un código Script Kiddie para spamear blogs en WordPress automáticamente. Sin embargo solo es el preámbulo ya que poner un while(1) y tratar de saltarse akismet si que es todo un reto. &#60;?php $postfields = array&#40;&#41;; $postfields&#91;&#34;action&#34;&#93; = &#34;submit&#34;; $postfields&#91;&#34;author&#34;&#93; = &#34;Spammer&#34;; $postfields&#91;&#34;email&#34;&#93; = &#34;spammer@spam.com&#34;; $postfields&#91;&#34;url&#34;&#93; = &#34;http://www.iamaspammer.com/&#34;; $postfields&#91;&#34;comment&#34;&#93; = &#34;I am a stupid spammer.&#34;; [...]]]></description>
			<content:encoded><![CDATA[<p>Un código Script Kiddie para spamear blogs en WordPress automáticamente. Sin embargo solo es el preámbulo ya que poner un <strong>while(1)</strong> y tratar de saltarse akismet si que es todo un reto.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> 
<span style="color: #000088;">$postfields</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #000088;">$postfields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;action&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;submit&quot;</span><span style="color: #339933;">;</span> 
<span style="color: #000088;">$postfields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;author&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Spammer&quot;</span><span style="color: #339933;">;</span> 
<span style="color: #000088;">$postfields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;email&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;spammer@spam.com&quot;</span><span style="color: #339933;">;</span> 
<span style="color: #000088;">$postfields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;url&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;http://www.iamaspammer.com/&quot;</span><span style="color: #339933;">;</span> 
<span style="color: #000088;">$postfields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;comment&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;I am a stupid spammer.&quot;</span><span style="color: #339933;">;</span> 
<span style="color: #000088;">$postfields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;comment_post_ID&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;123&quot;</span><span style="color: #339933;">;</span> 
<span style="color: #000088;">$postfields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;_wp_unfiltered_html_comment&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;0d870b294b&quot;</span><span style="color: #339933;">;</span> 
<span style="color: #666666; font-style: italic;">//Url of the form submission </span>
<span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;http://www.ablogthatdoesntexist.com/blog/suggerer_site.php?action=meta_pass&amp;id_cat=0&quot;</span><span style="color: #339933;">;</span> 
<span style="color: #000088;">$useragent</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Mozilla/5.0&quot;</span><span style="color: #339933;">;</span> 
<span style="color: #000088;">$referer</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$url</span><span style="color: #339933;">;</span>  
&nbsp;
<span style="color: #666666; font-style: italic;">//Initialize CURL session </span>
<span style="color: #000088;">$ch</span> <span style="color: #339933;">=</span> <span style="color: #990000;">curl_init</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #666666; font-style: italic;">//CURL options </span>
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_POST<span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #666666; font-style: italic;">//We post $postfields data </span>
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_POSTFIELDS<span style="color: #339933;">,</span> <span style="color: #000088;">$postfields</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #666666; font-style: italic;">//We define an useragent (Mozilla/5.0) </span>
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_USERAGENT<span style="color: #339933;">,</span> <span style="color: #000088;">$useragent</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #666666; font-style: italic;">//We define a refferer ($url) </span>
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_REFERER<span style="color: #339933;">,</span> <span style="color: #000088;">$referer</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #666666; font-style: italic;">//We get the result page in a string </span>
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_RETURNTRANSFER<span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #666666; font-style: italic;">//We exits CURL </span>
<span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #990000;">curl_exec</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #990000;">curl_close</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
&nbsp;
<span style="color: #666666; font-style: italic;">//Finally, we display the result </span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$result</span><span style="color: #339933;">;</span> 
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://michoacano.com.mx/codigo-php-para-enviar-comentarios-automaticamente-en-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Solución al error de WordPress en paginación de categorias y autor</title>
		<link>http://michoacano.com.mx/solucion-al-error-de-wordpress-en-paginacion-de-categorias-y-autor/</link>
		<comments>http://michoacano.com.mx/solucion-al-error-de-wordpress-en-paginacion-de-categorias-y-autor/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 12:50:54 +0000</pubDate>
		<dc:creator>julio</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programación]]></category>
		<category><![CDATA[trucos Wordpress]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://michoacano.com.mx/?p=2504</guid>
		<description><![CDATA[Existe un error de WordPress donde la paginación no funciona en permalinks que lleven la siguiente estructura. tublog.com/%category%/%postname%/ tublog.com/%author%/%postname%/ Cuando vas a la cualquier página que no sea la primera recibes error 404. Afortunadamente puedes solucionar el error puedes pegar el siguiente código en el archivo functions.php de tu theme. &#160; function remove_page_from_query_string&#40;$query_string&#41; &#123; if [...]]]></description>
			<content:encoded><![CDATA[<p>Existe un error de WordPress donde la paginación no funciona en permalinks que lleven la siguiente estructura.  </p>
<pre>tublog.com/%category%/%postname%/
tublog.com/%author%/%postname%/</pre>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">Cuando vas a la cualquier página que no sea la primera recibes error <span style="color: #cc66cc;">404</span><span style="color: #339933;">.</span> Afortunadamente puedes solucionar el error puedes pegar el siguiente código en el archivo functions<span style="color: #339933;">.</span>php de tu theme<span style="color: #339933;">.</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> remove_page_from_query_string<span style="color: #009900;">&#40;</span><span style="color: #000088;">$query_string</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$query_string</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'page'</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query_string</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'page'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #990000;">unset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query_string</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #666666; font-style: italic;">// 'page' in the query_string looks like '/2', so split it out</span>
        <span style="color: #990000;">list</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$delim</span><span style="color: #339933;">,</span> <span style="color: #000088;">$page_index</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">split</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$query_string</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'page'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$query_string</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'paged'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$page_index</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #000088;">$query_string</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'request'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'remove_page_from_query_string'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://michoacano.com.mx/solucion-al-error-de-wordpress-en-paginacion-de-categorias-y-autor/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Ejecutar PHP en Google App Engine</title>
		<link>http://michoacano.com.mx/ejecutar-php-en-google-app-engine/</link>
		<comments>http://michoacano.com.mx/ejecutar-php-en-google-app-engine/#comments</comments>
		<pubDate>Thu, 14 May 2009 13:47:28 +0000</pubDate>
		<dc:creator>julio</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programación]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://michoacano.com.mx/?p=1630</guid>
		<description><![CDATA[Google App Engine te permite ocupar el procesamiento de los Servers de google para tus aplicaciones. Pero solo esta limitado a pocos lenguajes como Java sin embargo puedes usar Quercus, una implementación Java de PHP. En el siguiente post puedes encontrar la explicación: Run PHP on the Google App Engine Via: sentidoweb.com]]></description>
			<content:encoded><![CDATA[<p>Google App Engine te permite ocupar el procesamiento de los Servers de google para tus aplicaciones. Pero solo esta limitado a pocos lenguajes como Java sin embargo puedes usar <a href="http://www.caucho.com/resin-3.0/quercus/" target="_blank">Quercus</a>, una implementación Java de PHP.</p>
<p>En el siguiente post puedes encontrar la explicación: <a href="http://www.webdigi.co.uk/blog/2009/run-php-on-the-google-app-engine/" target="_blank">Run PHP on the Google App Engine</a></p>
<p>Via: <a href="http://www.sentidoweb.com/">sentidoweb.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://michoacano.com.mx/ejecutar-php-en-google-app-engine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clase PHP para importar contactos MSN, GMAIL, WINDOWS LIVE..</title>
		<link>http://michoacano.com.mx/clase-php-para-importar-contactos-msn-gmail-windows-live/</link>
		<comments>http://michoacano.com.mx/clase-php-para-importar-contactos-msn-gmail-windows-live/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 18:19:29 +0000</pubDate>
		<dc:creator>julio</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programación]]></category>
		<category><![CDATA[CONTACTOS]]></category>
		<category><![CDATA[GMAIL]]></category>
		<category><![CDATA[MSN]]></category>

		<guid isPermaLink="false">http://michoacano.com.mx/?p=1543</guid>
		<description><![CDATA[Muchas redes sociales hoy permiten invitar a tus amigos mediante el acceso a tu cuenta para enviarles invitaciones a todos tus contactos. Lamentablemente también existen muchos otros sitios que solo se dedican a dar un supuesto servicio como &#8220;QUIEN TE BLOQUEO DEL MSN&#8221;, para obtener un beneficio propio. También es culpa de la idiota de [...]]]></description>
			<content:encoded><![CDATA[<p>Muchas redes sociales hoy permiten invitar a tus amigos mediante el acceso a tu cuenta para enviarles invitaciones a todos tus contactos. </p>
<p>Lamentablemente también existen muchos otros sitios que solo se dedican a dar un supuesto servicio como &#8220;QUIEN TE BLOQUEO DEL MSN&#8221;, para obtener un beneficio propio. También es culpa de la idiota de la gente,  no entiendo para que quieres saber quien te bloqueo.</p>
<pre language="PHP">
include('openinviter.php');
$inviter = new OpenInviter();
$inviter->startPlugin('gmail');
$inviter->login("username", "password");

$contacts = $inviter->getMyContacts();
foreach ($contacts as $email => $name) {
    echo $name . "  - " . $email . "";
}
$inviter->stopPlugin(true);
$inviter->logout();
</pre>
<p>El uso es muy sencillo. No pidas más. </p>
<p><a href="http://openinviter.com/">Openinviter</a></p>
]]></content:encoded>
			<wfw:commentRss>http://michoacano.com.mx/clase-php-para-importar-contactos-msn-gmail-windows-live/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Clase PHP para pagos de Paypal</title>
		<link>http://michoacano.com.mx/clase-php-para-pagos-de-paypal/</link>
		<comments>http://michoacano.com.mx/clase-php-para-pagos-de-paypal/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 18:22:22 +0000</pubDate>
		<dc:creator>julio</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programación]]></category>
		<category><![CDATA[DESARROLLO WEB]]></category>
		<category><![CDATA[paypal]]></category>

		<guid isPermaLink="false">http://michoacano.com.mx/?p=1542</guid>
		<description><![CDATA[Si necesitas crear aplicaciones con pagos mediante Paypal y no te quieres romper la cabeza viendo su documentación o creando botones o herramientas que son muy tardadas. Ve la siguiente clase muy fácil de utilizar. &#160; // Include the paypal library include_once &#40;'Paypal.php'&#41;; &#160; // Create an instance of the paypal library $myPaypal = new [...]]]></description>
			<content:encoded><![CDATA[<p>Si necesitas crear aplicaciones con pagos mediante <strong>Paypal</strong> y no te quieres romper la cabeza viendo su documentación  o creando botones o herramientas que son muy tardadas. Ve la siguiente clase muy fácil de utilizar.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #666666; font-style: italic;">// Include the paypal library</span>
<span style="color: #b1b100;">include_once</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Paypal.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Create an instance of the paypal library</span>
<span style="color: #000088;">$myPaypal</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Paypal<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Specify your paypal email</span>
<span style="color: #000088;">$myPaypal</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addField</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'business'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'YOUR_PAYPAL_EMAIL'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Specify the currency</span>
<span style="color: #000088;">$myPaypal</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addField</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'currency_code'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'USD'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Specify the url where paypal will send the user on success/failure</span>
<span style="color: #000088;">$myPaypal</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addField</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'return'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'http://YOUR_HOST/payment/paypal_success.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$myPaypal</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addField</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cancel_return'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'http://YOUR_HOST/payment/paypal_failure.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Specify the url where paypal will send the IPN</span>
<span style="color: #000088;">$myPaypal</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addField</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'notify_url'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'http://YOUR_HOST/payment/paypal_ipn.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Specify the product information</span>
<span style="color: #000088;">$myPaypal</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addField</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'item_name'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'T-Shirt'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$myPaypal</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addField</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'amount'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'9.99'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$myPaypal</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addField</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'item_number'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'001'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Specify any custom value</span>
<span style="color: #000088;">$myPaypal</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addField</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'custom'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'muri-khao'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Enable test mode if needed</span>
<span style="color: #000088;">$myPaypal</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">enableTestMode</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Let's start the train!</span>
<span style="color: #000088;">$myPaypal</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">submitPayment</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p><a href="http://www.phpfour.com/blog/2009/02/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/" rel="nofollow" ><strong>Libreria PHP PAYMENT LIBRARY</strong></a> | Via <a href="http://sentidoweb.com" rel="nofollow" >sentidoweb.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://michoacano.com.mx/clase-php-para-pagos-de-paypal/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Errores de PHP</title>
		<link>http://michoacano.com.mx/errores-de-php/</link>
		<comments>http://michoacano.com.mx/errores-de-php/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 19:00:14 +0000</pubDate>
		<dc:creator>julio</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programación]]></category>

		<guid isPermaLink="false">http://michoacano.com.mx/?p=1445</guid>
		<description><![CDATA[Y tu estas cometiendo estos errores de PHP?]]></description>
			<content:encoded><![CDATA[<p>Y tu estas cometiendo estos <a rel="nofollow" href="http://nettuts.com/articles/are-you-making-these-10-php-mistakes/">errores de PHP</a>?</p>
]]></content:encoded>
			<wfw:commentRss>http://michoacano.com.mx/errores-de-php/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Full Height con JQUERY</title>
		<link>http://michoacano.com.mx/full-height-con-jquery/</link>
		<comments>http://michoacano.com.mx/full-height-con-jquery/#comments</comments>
		<pubDate>Fri, 26 Dec 2008 01:01:41 +0000</pubDate>
		<dc:creator>julio</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programación]]></category>

		<guid isPermaLink="false">http://michoacano.com.mx/?p=1190</guid>
		<description><![CDATA[Tuve un problema, en una aplicación que estoy desarrollando, donde necesitaba que una capa tuviera la altura restante de la pantalla. Jquery me hizo la vida fácil, dado que mi aplicación es enteramente JS, puedo darme el lujo de usar este truco. var top_header=200px; $&#40;window&#41;.resize&#40;function&#40;&#41; &#123; $&#40;&#34;#content&#34;&#41;.css&#40;'height', $&#40;window&#41;.height&#40;&#41;-top_header&#41;; &#125;&#41;; Este codígo redimensiona la altura de [...]]]></description>
			<content:encoded><![CDATA[<p>Tuve un problema,  en una aplicación que estoy desarrollando, donde necesitaba que una capa tuviera la altura restante de la pantalla.  Jquery me hizo la vida fácil, dado que mi aplicación  es enteramente JS, puedo darme el lujo de usar este truco.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> top_header<span style="color: #339933;">=</span>200px<span style="color: #339933;">;</span>
$<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>resize<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#content&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>css<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'height'</span><span style="color: #339933;">,</span> $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>height<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-</span>top_header<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Este codígo redimensiona la altura de un div con la altura de la pantalla restándole unos px, que podrían ser un header o alguna otra cosa.</p>
<p>Aunque creo que en algunos navegadores no se invoca el evento de resize una vez que se carga la página. Por lo que lo ideal seria ponerlo en el <strong>.ready()</strong>.</p>
<p>Para quien le sirva.</p>
]]></content:encoded>
			<wfw:commentRss>http://michoacano.com.mx/full-height-con-jquery/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PHP: Includes como funciones</title>
		<link>http://michoacano.com.mx/php-includes-como-funciones/</link>
		<comments>http://michoacano.com.mx/php-includes-como-funciones/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 14:53:15 +0000</pubDate>
		<dc:creator>julio</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programación]]></category>

		<guid isPermaLink="false">http://michoacano.com.mx/?p=1078</guid>
		<description><![CDATA[Podemos usar un archivo. return array&#40; 'hostname' =&#62; 'localhost', 'database' =&#62; 'test', 'username' =&#62; 'test', 'password' =&#62; 'test', &#41;; Y al incluirlo a otro podemos hacer que regrese el valor. $config = include 'config.php'; Yo tampoco sabía &#8211;> Devolver Includes como funciones]]></description>
			<content:encoded><![CDATA[<p>Podemos usar un archivo.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">return</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> 
  <span style="color: #0000ff;">'hostname'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'localhost'</span><span style="color: #339933;">,</span> 
  <span style="color: #0000ff;">'database'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'test'</span><span style="color: #339933;">,</span> 
  <span style="color: #0000ff;">'username'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'test'</span><span style="color: #339933;">,</span> 
  <span style="color: #0000ff;">'password'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'test'</span><span style="color: #339933;">,</span> 
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Y al incluirlo a otro podemos hacer que regrese el valor.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$config</span> <span style="color: #339933;">=</span> <span style="color: #b1b100;">include</span> <span style="color: #0000ff;">'config.php'</span><span style="color: #339933;">;</span></pre></div></div>

<p>Yo tampoco sabía &#8211;> <a href="http://sentidoweb.com/2008/11/28/devolver-valores-en-includes-de-php.php">Devolver Includes como funciones</a></p>
]]></content:encoded>
			<wfw:commentRss>http://michoacano.com.mx/php-includes-como-funciones/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Petición POST en PHP</title>
		<link>http://michoacano.com.mx/peticion-post-en-php/</link>
		<comments>http://michoacano.com.mx/peticion-post-en-php/#comments</comments>
		<pubDate>Thu, 15 Nov 2007 23:22:27 +0000</pubDate>
		<dc:creator>julio</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programación]]></category>

		<guid isPermaLink="false">http://michoacano.com.mx/peticion-post-en-php/</guid>
		<description><![CDATA[A raíz de un post anterior sobre http testing, alguien me pregunto como hacer una petición POST en php. Existen dos formas, una es usando CURL. Y la más bonita es con sockets.]]></description>
			<content:encoded><![CDATA[<p>A raíz de un post anterior sobre<a href="http://michoacano.com.mx/http-testing-con-firefox/"> http testing</a>,  alguien me pregunto como hacer una petición POST en php.</p>
<p>Existen dos formas, una es usando <strong>CURL</strong>.</p>
<p><code lang="PHP"><br />
<?php<br />
$ch = curl_init('http://dominio.com/pagina.php');<br />
curl_setopt ($ch, CURLOPT_POST, 1);<br />
curl_setopt ($ch, CURLOPT_POSTFIELDS, "parametro1=valor1&#038;parametro2=valor2");<br />
curl_exec ($ch);<br />
curl_close ($ch);<br />
?><br />
</code></p>
<p>Y la más bonita es con<a href="http://pastebin.com/f7f667268"> sockets</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://michoacano.com.mx/peticion-post-en-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

