<?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>What I like! &#187; tutorial</title>
	<atom:link href="http://kelvinmedina.com/blog/tag/tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://kelvinmedina.com/blog</link>
	<description>kelvinmedina.com</description>
	<lastBuildDate>Wed, 02 Dec 2009 22:50:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Error #1005 &#8211; Can&#8217;t create table&#8230; en MySQL al intentar crear una relacion 1-M</title>
		<link>http://kelvinmedina.com/blog/2009/07/error-1005-cant-create-table-en-mysql-al-intentar-crear-una-relacion-1-m/</link>
		<comments>http://kelvinmedina.com/blog/2009/07/error-1005-cant-create-table-en-mysql-al-intentar-crear-una-relacion-1-m/#comments</comments>
		<pubDate>Sat, 25 Jul 2009 23:45:58 +0000</pubDate>
		<dc:creator>Kelvin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[relaciones]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://kelvinmedina.com/blog/?p=150</guid>
		<description><![CDATA[Estaba intentando hacer una relacion (unos a muchos 1-M) en una base de datos en MySQL ya existente  y recibia este error: #1005 - Can't create table 'table_name.#sql-344_126' (errno: 121)
La razon es que tenia varios asuntos sin resolver:
El campo a ser utilizado en la relacion tiene que ser llave primaria o indice (primary key or [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_156" class="wp-caption alignleft" style="width: 286px"><img class="size-medium wp-image-156" title="logo-mysql" src="http://kelvinmedina.com/blog/wp-content/uploads/2009/07/logo-mysql-300x218.jpg" alt="Logo MySQL" width="276" height="200" /><p class="wp-caption-text">Logo MySQL</p></div>
<p>Estaba intentando hacer una relacion (unos a muchos 1-M) en una base de datos en MySQL ya existente  y recibia este error: #1005 - Can't create table 'table_name.#sql-344_126' (errno: 121)</p>
<p><strong>La razon es que tenia varios asuntos sin resolver:</strong></p>
<p style="padding-left: 30px;">El campo a ser utilizado en la relacion tiene que ser llave primaria o indice (primary key or index).</p>
<p>Ambas tablas tienen que ser Engine InnoDB, para modificar una tabla existente puedes utilizar el siguente commando:</p>
<div class="igBar"><span id="lsql-3"><a href="#" onclick="javascript:showPlainTxt('sql-3'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">SQL:</span>
<div id="sql-3">
<div class="sql">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">'table_name'</span> ENGINE = InnoDB; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Para alterar una tabla ya existente, creando asi la relacion:</p>
<div class="igBar"><span id="lsql-4"><a href="#" onclick="javascript:showPlainTxt('sql-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">SQL:</span>
<div id="sql-4">
<div class="sql">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> usuarios</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #993333; font-weight: bold;">ADD</span> CONSTRAINT country_id</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #993333; font-weight: bold;">FOREIGN</span> <span style="color: #993333; font-weight: bold;">KEY</span> <span style="color:#006600; font-weight:bold;">&#40;</span>country_id<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #993333; font-weight: bold;">REFERENCES</span> countries <span style="color:#006600; font-weight:bold;">&#40;</span>country_id<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #993333; font-weight: bold;">ON</span> <span style="color: #993333; font-weight: bold;">DELETE</span> CASCADE <span style="color: #993333; font-weight: bold;">ON</span> <span style="color: #993333; font-weight: bold;">UPDATE</span> CASCADE </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Pueden conseguir mas informacion en este blog: <a title="MySQL Error Number 1005 Can’t create table ‘.\mydb\#sql-328_45.frm’ (errno: 150)" href="http://www.verysimple.com/blog/2006/10/22/mysql-error-number-1005-cant-create-table-mydbsql-328_45frm-errno-150/" target="blank">MySQL Error Number 1005 Can’t create table ‘.\mydb\#sql-328_45.frm’ (errno: 150)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kelvinmedina.com/blog/2009/07/error-1005-cant-create-table-en-mysql-al-intentar-crear-una-relacion-1-m/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Script en PHP que envia nombre de los archivos y sus localizacionnes a una base de datos en MySQL</title>
		<link>http://kelvinmedina.com/blog/2009/07/script-en-php-que-envia-nombre-directorio-y-localizacion-a-base-de-datos-en-mysql/</link>
		<comments>http://kelvinmedina.com/blog/2009/07/script-en-php-que-envia-nombre-directorio-y-localizacion-a-base-de-datos-en-mysql/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 22:34:30 +0000</pubDate>
		<dc:creator>Kelvin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[base de datos]]></category>
		<category><![CDATA[copiar]]></category>
		<category><![CDATA[copiar archivos]]></category>
		<category><![CDATA[copiar directorio]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[directorios]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[programacion]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://kelvinmedina.com/blog/?p=125</guid>
		<description><![CDATA[Actualmente estoy trabajando en un proyecto en donde tengo que realizar una pagina Intranet.  Como parte del mismo tengo que copiar el nombre y el directorio de unos archivos que estan alojados en el servidor.  Hay es cuando interviene PHP, con el cual he creado un "script" que al momento de correrlo se conecta a [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-128" title="php" src="http://kelvinmedina.com/blog/wp-content/uploads/2009/07/php.png" alt="php" width="367" height="239" />Actualmente estoy trabajando en un proyecto en donde tengo que realizar una pagina Intranet.  Como parte del mismo tengo que copiar el nombre y el directorio de unos archivos que estan alojados en el servidor.  Hay es cuando interviene PHP, con el cual he creado un "script" que al momento de correrlo se conecta a una base de datos en MySQL y envia el nombre y directorio de los archivos.  El mismo hay que correrlo de forma manual, pero se podría implementar para que corra automaticamente cada minuto, hora o dia. Asimismo, una vez  la informacion esta en la base de datos se puede crear un buscador con PHP en donde el usuario pueda buscar los archivos y descargarlos.</p>
<p>Ejemplo:</p>
<p>C:\documentos\midocumento.doc</p>
<p>Se enviara a la base de datos: midocumento.doc y el directorio C:\documentos\midocumento.doc</p>
<p>* El mismo funciona con el backslash '\' de Windows, si vas a utilizar Linux debes modificar el codigo.</p>
<div class="igBar"><span id="lcode-6"><a href="#" onclick="javascript:showPlainTxt('code-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-6">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;!DOCTYPE HTML PUBLIC <span style="color:#CC0000;">"-//W3C//DTD HTML 4.01 Transitional//EN"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#CC0000;">"http://www.w3.org/TR/html4/loose.dtd"</span>&amp;gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;html&amp;gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;head&amp;gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;meta http-equiv=<span style="color:#CC0000;">"Content-Type"</span> content=<span style="color:#CC0000;">"text/html; charset=iso-8859-1"</span>&amp;gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;title&amp;gt;Untitled Document&amp;lt;/title&amp;gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;/head&amp;gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;body&amp;gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;?php</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$it = new RecursiveDirectoryIterator<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">'./'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">// database</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$dbhost = <span style="color:#CC0000;">'localhost'</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$dbuser = <span style="color:#CC0000;">'root'</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$dbpass = <span style="color:#CC0000;">'password'</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">// connecting to database</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$conn = mysql_connect<span style="color:#006600; font-weight:bold;">&#40;</span>$dbhost, $dbuser, $dbpass<span style="color:#006600; font-weight:bold;">&#41;</span> or die <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">'Error connecting to MySQL'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$dbname = <span style="color:#CC0000;">'direc_files'</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">mysql_select_db<span style="color:#006600; font-weight:bold;">&#40;</span>$dbname,$conn<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">// RecursiveIteratorIterator accepts the following modes:</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">//     LEAVES_ONLY = 0  (default)</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">//     SELF_FIRST  = 1</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">//     CHILD_FIRST = 2</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">foreach <span style="color:#006600; font-weight:bold;">&#40;</span>new RecursiveIteratorIterator<span style="color:#006600; font-weight:bold;">&#40;</span>$it, <span style="color:#800000;color:#800000;">2</span><span style="color:#006600; font-weight:bold;">&#41;</span> as $path<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#FF9933; font-style:italic;">// foreach began</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">if <span style="color:#006600; font-weight:bold;">&#40;</span>$path != <span style="color:#CC0000;">'.'</span> &amp;amp;&amp;amp; $path != <span style="color:#CC0000;">'..'</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#FF9933; font-style:italic;">// if began</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">if <span style="color:#006600; font-weight:bold;">&#40;</span> !is_dir<span style="color:#006600; font-weight:bold;">&#40;</span>$path<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#FF9933; font-style:italic;">// tells whether the given filename is a directory</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#FF9933; font-style:italic;">// if began</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">//echo basename($path); // display directory name</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$insert = basename<span style="color:#006600; font-weight:bold;">&#40;</span>$path<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">echo <span style="color:#CC0000;">"&amp;lt;p&amp;gt;$insert&amp;lt;/p&amp;gt;"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">echo <span style="color:#CC0000;">"<span style="color:#000099; font-weight:bold;">\n</span>"</span>; <span style="color:#FF9933; font-style:italic;">// new line</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">// echo &quot;&amp;lt;p&amp;gt;$path&amp;lt;/p&amp;gt;&quot;;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">echo <span style="color:#CC0000;">"<span style="color:#000099; font-weight:bold;">\n</span>"</span>; <span style="color:#FF9933; font-style:italic;">// new line</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$path_trimmed = ltrim<span style="color:#006600; font-weight:bold;">&#40;</span>$path,<span style="color:#CC0000;">'.'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">echo <span style="color:#CC0000;">"<span style="color:#000099; font-weight:bold;">\n</span>"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$dir_safe = mysql_real_escape_string<span style="color:#006600; font-weight:bold;">&#40;</span>$path_trimmed<span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#FF9933; font-style:italic;">// allow to enter escape character in a safe way</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$dir_http = str_replace<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">"<span style="color:#000099; font-weight:bold;">\\</span><span style="color:#000099; font-weight:bold;">\\</span>"</span>, <span style="color:#CC0000;">'/'</span>, $dir_safe<span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#FF9933; font-style:italic;">// replace '\' with '/'</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">echo <span style="color:#CC0000;">"&amp;lt;strong&amp;gt;The directory : $dir_http &amp;lt;/strong&amp;gt;"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">mysql_query<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">"INSERT INTO index_files (file_name, directory)</span></div>
</li>
<li style="font-weight: bold;color:#26536A;"></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#CC0000;">VALUES ('$insert','$dir_http')"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#FF9933; font-style:italic;">// if end</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#FF9933; font-style:italic;">// if end</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#FF9933; font-style:italic;">// foreach end</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">//mysql_close($conn); // close mysql connection</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">?&amp;gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;/body&amp;gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;/html&amp;gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://kelvinmedina.com/blog/2009/07/script-en-php-que-envia-nombre-directorio-y-localizacion-a-base-de-datos-en-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Usar iPhone como modem en una computadora Desktop/Laptop</title>
		<link>http://kelvinmedina.com/blog/2009/07/usar-iphone-como-modem-en-una-computadora-desktoplaptop/</link>
		<comments>http://kelvinmedina.com/blog/2009/07/usar-iphone-como-modem-en-una-computadora-desktoplaptop/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 02:26:22 +0000</pubDate>
		<dc:creator>Kelvin</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[como]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[iphone 2g]]></category>
		<category><![CDATA[iphone 3g]]></category>
		<category><![CDATA[iphone 3gs]]></category>
		<category><![CDATA[modem]]></category>
		<category><![CDATA[tethering]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[tutoriales]]></category>
		<category><![CDATA[unlock iphone]]></category>

		<guid isPermaLink="false">http://kelvinmedina.com/blog/?p=115</guid>
		<description><![CDATA[Hasta ahora at&#38;t no ha permitido que sus clientes puedan utilizar el iPhone para conectar a Internet su computadora ya sea Desktop/Laptop.  Pero siguiendo unos pasos sumamente sencillos podemos lograr lo que se conoce como "tethering" y asi poder sacarle provecho a los $30 que actualmente pagas por tu Internet a at&#38;t.  En esta pagina [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-116" title="iphone30-hack" src="http://kelvinmedina.com/blog/wp-content/uploads/2009/07/iphone30-hack.jpg" alt="iphone30-hack" width="355" height="263" />Hasta ahora at&amp;t no ha permitido que sus clientes puedan utilizar el iPhone para conectar a Internet su computadora ya sea Desktop/Laptop.  Pero siguiendo unos pasos sumamente sencillos podemos lograr lo que se conoce como "tethering" y asi poder sacarle provecho a los $30 que actualmente pagas por tu Internet a at&amp;t.  En esta pagina puedes conseguir los detalles <a href="http://help.benm.at/help.php." target="_blank">http://help.benm.at/help.php.</a> El proceso es relativamente rapido, solo toma unos 10 minutos.  Debo mencionar que el mismo funciona con otras proveedoras de servicio telefonico alrededor del mundo.</p>
]]></content:encoded>
			<wfw:commentRss>http://kelvinmedina.com/blog/2009/07/usar-iphone-como-modem-en-una-computadora-desktoplaptop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Como hacer backup a las aplicaciones de un iPhone &#8220;jailbreak&#8221;</title>
		<link>http://kelvinmedina.com/blog/2009/07/como-hacer-backup-a-un-iphone-jailbreak/</link>
		<comments>http://kelvinmedina.com/blog/2009/07/como-hacer-backup-a-un-iphone-jailbreak/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 00:11:46 +0000</pubDate>
		<dc:creator>Kelvin</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[aplicaciones]]></category>
		<category><![CDATA[AptBackup]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[como]]></category>
		<category><![CDATA[copia de respaldo]]></category>
		<category><![CDATA[Cydia]]></category>
		<category><![CDATA[iphone 2g]]></category>
		<category><![CDATA[iphone 3g]]></category>
		<category><![CDATA[iphone 3gs]]></category>
		<category><![CDATA[itunes]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://kelvinmedina.com/blog/?p=86</guid>
		<description><![CDATA[Ok tienes tu iPhone "jailbreak" pero necesitas hacer un backup de las aplicaciones descargadas con Cydia? La solucion es descargar AptBackup un programa desarollado por Chris Featherstone. Esta aplicacion crea una lista de las aplicaciones descargadas con Cydia y la almacena junto con el backup realizado a traves de iTunes.  Pero debido a que el [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-87" title="iphone-aptbackup" src="http://kelvinmedina.com/blog/wp-content/uploads/2009/07/iphone-aptbackup.jpg" alt="iphone-aptbackup" width="200" height="300" />Ok tienes tu iPhone "jailbreak" pero necesitas hacer un backup de las aplicaciones descargadas con Cydia? La solucion es descargar <strong>AptBackup </strong>un programa desarollado por<strong> </strong>Chris Featherstone<strong>.</strong> Esta aplicacion crea una lista de las aplicaciones descargadas con Cydia y la almacena junto con el backup realizado a traves de iTunes.  Pero debido a que el programa solo crea una lista, las preferencias de cada aplicacion se perderan.  Cuando necesites restaurar las aplicaciones, solo restaura el backup oficial creado desde iTunes, luego instala y ejecuta <strong>AptBackup</strong> a traves de Cydia.<strong> </strong></p>
<p><strong>AptBackup Takes Backup of Jailbreak Apps:</strong></p>
<p><a href="http://www.iphonehacks.com/2008/09/iphoneaptbackup.html" target="_blank">http://www.iphonehacks.com/2008/09/iphoneaptbackup.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kelvinmedina.com/blog/2009/07/como-hacer-backup-a-un-iphone-jailbreak/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Instalar aplicaciones pirateadas en el iPhone 3.0 OS con Installous</title>
		<link>http://kelvinmedina.com/blog/2009/07/instalar-aplicaciones-pirateadas-en-el-iphone-3-0-os/</link>
		<comments>http://kelvinmedina.com/blog/2009/07/instalar-aplicaciones-pirateadas-en-el-iphone-3-0-os/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 13:38:11 +0000</pubDate>
		<dc:creator>Kelvin</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[applicaciones iphone]]></category>
		<category><![CDATA[appoulo.us]]></category>
		<category><![CDATA[appulo.us]]></category>
		<category><![CDATA[Cydia]]></category>
		<category><![CDATA[gratis]]></category>
		<category><![CDATA[Installous]]></category>
		<category><![CDATA[iphone 2g]]></category>
		<category><![CDATA[iphone 3.0]]></category>
		<category><![CDATA[iphone 3gs]]></category>
		<category><![CDATA[pirateado]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[unlock iphone]]></category>

		<guid isPermaLink="false">http://kelvinmedina.com/blog/?p=81</guid>
		<description><![CDATA[Quieres conseguir las aplicaciones del App Store y no deseas someterte al control de @pple? O simplemente no deseas pagar? La alternativa es instalar Installous.  El requisito es tener tu telefono "jailbreak" y por supuesto Cydia.
How to install Installous cracked apps on iPhone 3.0 OS:
http://www.elxsy.com/2009/06/how-to-install-installous-cracked-apps-on-iphone-3-0-os/comment-page-1/ 
]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-83" title="appulo.us" src="http://kelvinmedina.com/blog/wp-content/uploads/2009/07/appulo.us.png" alt="appulo.us" width="320" height="480" />Quieres conseguir las aplicaciones del App Store y no deseas someterte al control de @pple? O simplemente no deseas pagar? La alternativa es instalar Installous.  El requisito es tener tu telefono "jailbreak" y por supuesto Cydia.</p>
<p><strong>How to install Installous cracked apps on iPhone 3.0 OS:</strong></p>
<p><a href="http://www.elxsy.com/2009/06/how-to-install-installous-cracked-apps-on-iphone-3-0-os/comment-page-1/" target="_blank">http://www.elxsy.com/2009/06/how-to-install-installous-cracked-apps-on-iphone-3-0-os/comment-page-1/ </a></p>
]]></content:encoded>
			<wfw:commentRss>http://kelvinmedina.com/blog/2009/07/instalar-aplicaciones-pirateadas-en-el-iphone-3-0-os/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutoriales que te ayudaran a &#8220;jailbreak&#8221; el iPhone 3GS (Windows)</title>
		<link>http://kelvinmedina.com/blog/2009/07/tutoriales-iphone3gs-windows/</link>
		<comments>http://kelvinmedina.com/blog/2009/07/tutoriales-iphone3gs-windows/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 23:09:07 +0000</pubDate>
		<dc:creator>Kelvin</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[como]]></category>
		<category><![CDATA[iphone 3gs]]></category>
		<category><![CDATA[jailbreak]]></category>
		<category><![CDATA[liberar]]></category>
		<category><![CDATA[redsn0w]]></category>
		<category><![CDATA[redsnow]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[tutoriales]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://kelvinmedina.com/blog/?p=67</guid>
		<description><![CDATA[Hace par de dias salio al publico la ultima version del programa redsn0w que permite hacer "jailbreak" al iPhone 3GS. Y con el cual apenas acabo de terminar de hacerle el "jailbreak" a mi celular y la experiencia fue muy buena.  El programa es bien sencillo de utilizar y logra conseguir su objetivo de una [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-71" title="iphone-jailbreak" src="http://kelvinmedina.com/blog/wp-content/uploads/2009/07/iphone-jailbreak.jpg" alt="iphone-jailbreak" width="320" height="320" />Hace par de dias salio al publico la ultima version del programa <strong>redsn0w </strong>que permite hacer "jailbreak" al iPhone 3GS.<strong> </strong>Y con el cual apenas acabo de terminar de hacerle el "jailbreak" a mi celular y la experiencia fue muy buena.  El programa es bien sencillo de utilizar y logra conseguir su objetivo de una forma muy rapida. Para llevar a cabo el proceso utilice los siguientes tutoriales.</p>
<p><strong><span>How to Capture Your iPhone 3GS iBEC and iBSS (Windows): </span></strong><span>**Es importante que antes de realizar cualquier actualizacion logres obtener el iBEC y el iBSS pues de estos archivos dependera que puedas realizar "jailbrake" en el futuro.  Recuerda almacenarlos en un lugar seguro, para su uso posterior. ** </span> <a href="http://www.iclarified.com/entry/index.php?enid=4399 " target="_blank">http://www.iclarified.com/entry/index.php?enid=4399 </a></p>
<p><strong><span>How to Jailbreak Your iPhone 3GS on OS 3.0 Using RedSn0w (Windows):</span></strong> <a href="http://www.iclarified.com/entry/index.php?enid=4447" target="_blank">http://www.iclarified.com/entry/index.php?enid=4447</a> <strong></strong></p>
<p><strong><span>How to Put an iPhone Into DFU Mode:</span></strong> <a href="http://www.iclarified.com/entry/index.php?enid=1034" target="_blank">http://www.iclarified.com/entry/index.php?enid=1034</a></p>
<p>Y luego solo queda divertinos con nuestro iPhone  3GS  100% a nuestra merced y no a la merced de @pple.</p>
]]></content:encoded>
			<wfw:commentRss>http://kelvinmedina.com/blog/2009/07/tutoriales-iphone3gs-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
