Skip to content

Instantly share code, notes, and snippets.

View jaimefranko's full-sized avatar
🎯
Focusing

Jaime Franco jaimefranko

🎯
Focusing
View GitHub Profile
@jaimefranko
jaimefranko / index.php
Created March 4, 2023 01:53
Evitar Cache en Archivos con PHP
<?php
$fechaSegundos = time(); // función que obtiene el tiempo
$NoCache = "?nocache=$fechaSegundos"; // y aquí es donde ocurre la magia por ejemplo,
// concatenar la variable $NoCache luego de la extensión de tu imagen //
//cuando el navegador cargue te mostrará la imagen más reciente
//sin importar si acabas de reemplazarla con algún cambio,
//lo mismo aplica para archivos javascript
?>
<html>
<body>
@jaimefranko
jaimefranko / .htaccess
Last active March 4, 2023 01:50
Url Amigable PHP
RewriteEngine On
RewriteBase /
RewriteRule ^(.*)-([0-9]{1,8}).html$ /ruta-de-mi-php.php?id=$2
@jaimefranko
jaimefranko / tablapaises.sql
Created August 12, 2022 03:34 — forked from angeldelrio/tablapaises.sql
Tabla MySQL paises el mundo en español
CREATE TABLE `paises` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`iso` char(2) DEFAULT NULL,
`nombre` varchar(80) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
INSERT INTO `paises` VALUES(1, 'AF', 'Afganistán');
INSERT INTO `paises` VALUES(2, 'AX', 'Islas Gland');
INSERT INTO `paises` VALUES(3, 'AL', 'Albania');