{"id":1506,"date":"2016-12-17T00:37:00","date_gmt":"2016-12-17T06:37:00","guid":{"rendered":"http:\/\/linuxitos.com\/main\/savemypassword-1-1-3-php-mysql\/"},"modified":"2016-12-17T00:37:00","modified_gmt":"2016-12-17T06:37:00","slug":"savemypassword-1-1-3-php-mysql","status":"publish","type":"post","link":"https:\/\/linuxitos.com\/main\/savemypassword-1-1-3-php-mysql\/","title":{"rendered":"SavemyPassword 1.1.3 &#8211; PHP-MySQL"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/4.bp.blogspot.com\/-ieDWV3anZQk\/WFTDheOPCVI\/AAAAAAAAEMQ\/ABQBeEzRwgEpnTmRC_EWbR2Y_QYNB6QTACLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-12-16%2B22-46-54.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" border=\"0\" src=\"https:\/\/4.bp.blogspot.com\/-ieDWV3anZQk\/WFTDheOPCVI\/AAAAAAAAEMQ\/ABQBeEzRwgEpnTmRC_EWbR2Y_QYNB6QTACLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-12-16%2B22-46-54.png\" \/><\/a><\/div>\n<p><span style=\"font-size: large;\"><br \/><\/span><\/p>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">SaveMyPassword es un sitio web que he desarrollado como ejemplo completo, en el uso de MySQL y PHP. Este sitio es para guardar nombres de usuario y contrase\u00f1as por cada usuaro.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">La idea principal, es ejemplificar el uso de base de datos, uso de clases en php. En entre \u00e9stas caracter\u00edsticas se encuentran:<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">&#8211; Uso de clases<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">&#8211; Uso de mysqli<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">&#8211; Compatible con php7<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">&#8211; Uso md5 encryptado<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">&#8211; Y muchas otras cosas.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><span style=\"font-size: large;\">El sitio en l\u00ednea lo pueden probar aqu\u00ed.&nbsp;<a href=\"http:\/\/savemypasswd.webcindario.com\/\">http:\/\/savemypasswd.webcindario.com<\/a><\/span><\/div>\n<h2 style=\"text-align: center;\"><b><span style=\"font-size: x-large;\">\u00bfC\u00f3mo utilizar el sitio local con Xampp?<\/span><\/b><\/h2>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Cualquiera que ya haya utilizado Xampp como servidor de php, sabr\u00e1 lo f\u00e1cil que es levantarlo.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Paso 1: Instalar XAMPP, omitir\u00e9 el proceso de instalaci\u00f3n para todos los SO, pero aqu\u00ed les dejo c\u00f3mo instalarlo en Fedora 25.&nbsp;<\/span><span style=\"text-align: left;\"><span style=\"font-size: large;\"><a href=\"https:\/\/linuxgx.blogspot.mx\/2016\/05\/instalar-y-desinstalar-xamp-5521-en.html\">https:\/\/linuxgx.blogspot.mx\/2016\/05\/instalar-y-desinstalar-xamp-5521-en.html<\/a><\/span><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Link de descarga de XAMPP:&nbsp;<\/span><span style=\"text-align: left;\"><span style=\"font-size: large;\"><a href=\"https:\/\/www.apachefriends.org\/download.html\">XAMPP descarga<\/a><\/span><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Paso 2:&nbsp;<\/span><span style=\"font-size: large;\">Descargar el repositorio de Github:&nbsp;<\/span><span style=\"font-size: large; text-align: left;\"><a href=\"https:\/\/github.com\/jesusferm\/savemypassword\">LinkDescarga<\/a><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Paso 3: Mover la carpeta extra\u00edda de savemypassword a la ruta htdocs que se encuentra en la ruta de instalaci\u00f3n de xampp, en linux a veces es necesario asignar permisos de lectura y escritura a la carpeta savemypasword, en caso de que no funcione el sitio.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Paso 4: Crear la base de datos desde phpMyAdmin, ir a&nbsp;<\/span><span style=\"text-align: left;\"><span style=\"font-size: large;\"><a href=\"http:\/\/localhost\/phpmyadmin\/\">http:\/\/localhost\/phpmyadmin\/<\/a><\/span><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Dar clic en la opci\u00f3n nueva:<\/span><\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/1.bp.blogspot.com\/-de5SJVPt4eE\/WFTL9VP-YFI\/AAAAAAAAEMc\/EhmUo3xmipoIBrl4usGegYekeFdI19TfACLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-12-16%2B23-22-05.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" border=\"0\" src=\"https:\/\/1.bp.blogspot.com\/-de5SJVPt4eE\/WFTL9VP-YFI\/AAAAAAAAEMc\/EhmUo3xmipoIBrl4usGegYekeFdI19TfACLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-12-16%2B23-22-05.png\" \/><\/a><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">El nombre de la BD se llamar\u00e1 savemypassword, una vez asignado el nombre, clic en crear.<\/span><\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/4.bp.blogspot.com\/-42f9ShJhn2o\/WFTMe2kA5FI\/AAAAAAAAEMg\/cbw5ZqwkS8EFjRdali2TdE1n9GpTOkL4QCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-12-16%2B23-24-12.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" border=\"0\" src=\"https:\/\/4.bp.blogspot.com\/-42f9ShJhn2o\/WFTMe2kA5FI\/AAAAAAAAEMg\/cbw5ZqwkS8EFjRdali2TdE1n9GpTOkL4QCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-12-16%2B23-24-12.png\" \/><\/a><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Una vez creada la BD, seleccionarla e ir la pesta\u00f1a SQL. Una vez ah\u00ed, copiar y pegar las siguientes instrucciones sql para crear la base de datos.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<pre style=\"background: url(&quot;assets\/shadow.png&quot;) 50% 100% repeat-x rgb(245, 245, 245); border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-shadow: rgb(204, 204, 204) 0px 0px 3px; box-sizing: border-box; color: #262626; font-family: &quot;Courier 10 Pitch&quot;, Courier, monospace; font-size: 1.5rem; font-stretch: normal; font-style: inherit; font-weight: inherit; line-height: 1.6; margin-bottom: 10px; max-width: 100%; outline: 0px; overflow: auto; padding: 9.5px; tab-size: 4; text-shadow: rgb(255, 255, 255) 0px 1px 0px; vertical-align: baseline; word-break: break-all; word-wrap: break-word;\"><span style=\"border: 0px; color: #333333; font-family: &quot;menlo&quot; , &quot;monaco&quot; , &quot;consolas&quot; , &quot;courier new&quot; , monospace; font-size: 15px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; line-height: 18.5714px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: pre-wrap;\">use savemypassword;<br \/><br \/>create table usuarios(<br \/> iduser int auto_increment,<br \/> cuentauser varchar(80),<br \/> passwd varchar(200),<br \/> typeuser int,<br \/> fraseuser varchar(200),<br \/> activated int,<br \/> nomuser varchar(90),<br \/> apuser varchar(90),<br \/> primary key(iduser, cuentauser)<br \/>);<br \/><br \/>create table passwords(<br \/> iduser int,<br \/> nomcuenta varchar(90),<br \/> passcuenta varchar(200),<br \/> descripcuenta varchar(200),<br \/> activated int,<br \/> foreign key (iduser) references usuarios(iduser),<br \/> primary key(iduser,nomcuenta)<br \/>);<\/span><\/span><\/pre>\n<div><span style=\"border: 0px; color: #333333; font-family: &quot;menlo&quot; , &quot;monaco&quot; , &quot;consolas&quot; , &quot;courier new&quot; , monospace; font-size: 15px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; line-height: 18.5714px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: pre-wrap;\"><br \/><\/span><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Y clic en continuar:<\/span><\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/4.bp.blogspot.com\/-nuVQ01VuvPA\/WFTN0dfSNrI\/AAAAAAAAEMo\/1mJns-js0KoBUxBo3AJp-xKvhrfBjYL_QCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-12-16%2B23-30-10.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" border=\"0\" src=\"https:\/\/4.bp.blogspot.com\/-nuVQ01VuvPA\/WFTN0dfSNrI\/AAAAAAAAEMo\/1mJns-js0KoBUxBo3AJp-xKvhrfBjYL_QCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-12-16%2B23-30-10.png\" \/><\/a><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">5.- Una vez creada la base de datos, ir la carpeta savemypassword que est\u00e1 en htdocs y buscar dentro de la carpeta includes el archivo&nbsp;<\/span><span style=\"text-align: left;\"><span style=\"font-size: large;\">dbconfig.php y modificar el nombre de usuario, contrase\u00f1a y la ip del servidor.<\/span><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"text-align: left;\"><span style=\"font-size: large;\"><br \/><\/span><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"text-align: left;\"><span style=\"font-size: large;\">6.- Modificado dicho archivo, ir a&nbsp;<\/span><\/span><span style=\"text-align: left;\"><span style=\"font-size: large;\"><a href=\"http:\/\/localhost\/savemypassword\/\">http:\/\/localhost\/savemypassword\/<\/a>&nbsp;y probar el sitio.<\/span><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"text-align: left;\"><span style=\"font-size: large;\"><br \/><\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"font-size: large;\">Y eso ser\u00eda todo, dejo algunas capturas:<\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/2.bp.blogspot.com\/-t_RkbEdXZJI\/WFTPCQHYO2I\/AAAAAAAAEMw\/EmvJzBhFwvwORt2dpy7aqN9yVsOo72NcACLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-12-16%2B23-34-33.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" border=\"0\" src=\"https:\/\/2.bp.blogspot.com\/-t_RkbEdXZJI\/WFTPCQHYO2I\/AAAAAAAAEMw\/EmvJzBhFwvwORt2dpy7aqN9yVsOo72NcACLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-12-16%2B23-34-33.png\" \/><\/a><\/div>\n<p><\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/1.bp.blogspot.com\/-Ka9dR47TnFY\/WFTPCr4WF7I\/AAAAAAAAEM4\/vPZupr1qM2MYlDKJdogEUqOdtTsTh8QQgCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-12-16%2B23-34-40.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" border=\"0\" src=\"https:\/\/1.bp.blogspot.com\/-Ka9dR47TnFY\/WFTPCr4WF7I\/AAAAAAAAEM4\/vPZupr1qM2MYlDKJdogEUqOdtTsTh8QQgCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-12-16%2B23-34-40.png\" \/><\/a><\/div>\n<p><\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/2.bp.blogspot.com\/-Z_QbnyFlDsQ\/WFTPCu9QI5I\/AAAAAAAAEM0\/Jo-YnrjNT7QGbCb4fEVHvHYn89UfQNa5QCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-12-16%2B23-34-44.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" border=\"0\" src=\"https:\/\/2.bp.blogspot.com\/-Z_QbnyFlDsQ\/WFTPCu9QI5I\/AAAAAAAAEM0\/Jo-YnrjNT7QGbCb4fEVHvHYn89UfQNa5QCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-12-16%2B23-34-44.png\" \/><\/a><\/div>\n<p><\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/1.bp.blogspot.com\/-_UGsRObT53c\/WFTPCzij6EI\/AAAAAAAAEM8\/8kHgPVtUeE09zfeUJc5CUE1TdXmMMJM1gCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-12-16%2B23-34-48.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" border=\"0\" src=\"https:\/\/1.bp.blogspot.com\/-_UGsRObT53c\/WFTPCzij6EI\/AAAAAAAAEM8\/8kHgPVtUeE09zfeUJc5CUE1TdXmMMJM1gCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-12-16%2B23-34-48.png\" \/><\/a><\/div>\n<p><\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/1.bp.blogspot.com\/-JZPPQVVf1lI\/WFTPDUCYKoI\/AAAAAAAAENA\/Uk9B2znJjok3s0tdjjTCUkM355ub7oaYgCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-12-16%2B23-34-56.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" border=\"0\" src=\"https:\/\/1.bp.blogspot.com\/-JZPPQVVf1lI\/WFTPDUCYKoI\/AAAAAAAAENA\/Uk9B2znJjok3s0tdjjTCUkM355ub7oaYgCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-12-16%2B23-34-56.png\" \/><\/a><\/div>\n<p><\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/4.bp.blogspot.com\/-emVxMCaXl7Y\/WFTPDqgkk2I\/AAAAAAAAENE\/guqy0RpLcqkDAerkc8h_9OUWGf1CUQOnwCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-12-16%2B23-35-10.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" border=\"0\" src=\"https:\/\/4.bp.blogspot.com\/-emVxMCaXl7Y\/WFTPDqgkk2I\/AAAAAAAAENE\/guqy0RpLcqkDAerkc8h_9OUWGf1CUQOnwCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-12-16%2B23-35-10.png\" \/><\/a><\/div>\n<div style=\"text-align: left;\"><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>SaveMyPassword es un sitio web que he desarrollado como ejemplo completo, en el uso de MySQL y PHP. Este sitio es para guardar nombres de usuario y contrase\u00f1as por cada usuaro. La idea principal, es ejemplificar el uso de base de datos, uso de clases en php. En entre \u00e9stas caracter\u00edsticas se encuentran: &#8211; Uso [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[260,258,257,261,60,262,67,259],"tags":[],"class_list":["post-1506","post","type-post","status-publish","format-standard","hentry","category-clases","category-clases-php","category-conexion-bd-desde-php","category-ejemplo-completo","category-mysql","category-mysqli","category-php","category-savemypasword"],"_links":{"self":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1506","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/comments?post=1506"}],"version-history":[{"count":0,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1506\/revisions"}],"wp:attachment":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/media?parent=1506"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/categories?post=1506"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/tags?post=1506"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}