I hereby claim:
- I am kroatoanweb on github.
- I am kroatoan (https://keybase.io/kroatoan) on keybase.
- I have a public key whose fingerprint is 07D2 13AD B619 E225 7756 12C5 EFD7 99A4 CA98 E95F
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<?php | |
error_reporting(E_ALL); | |
ini_set('display_errors', 1); |
<?php | |
function vr() | |
{ | |
echo '<pre>'; | |
var_dump(func_get_args()); | |
echo '</pre>'; | |
} |
<?php | |
/** | |
* | |
* Valida un email usando funciones de manejo de strings. | |
* Devuelve true si es correcto o false en caso contrario | |
* | |
* @param string $str la dirección a validar | |
* @return boolean | |
* | |
*/ |
<?php | |
/** | |
* | |
* Valida un email usando expresiones regulares. | |
* Devuelve true si es correcto o false en caso contrario | |
* | |
* @param string $str la dirección a validar | |
* @return boolean | |
* | |
*/ |
<?php | |
/** | |
* | |
* Valida un email usando filter_var. | |
* Devuelve true si es correcto o false en caso contrario | |
* | |
* @param string $str la dirección a validar | |
* @return boolean | |
* | |
*/ |
<?php | |
/** | |
* | |
* Valida un email usando filter_var y comprobar las DNS. | |
* Devuelve true si es correcto o false en caso contrario | |
* | |
* @param string $str la dirección a validar | |
* @return boolean | |
* | |
*/ |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{HTTP_HOST} !^www.tudominio.com$ [NC] | |
RewriteRule ^(.*)$ http://www.tudominio.com/$1 [L,R=301] |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{HTTP_HOST} !^tudominio.com$ [NC] | |
RewriteRule ^(.*)$ http://tudominio.com/$1 [L,R=301] |
<?php | |
/** | |
* Configuración de la aplicación | |
* Idealmente en un fichero aparte | |
*/ | |
$dsn = 'mysql:dbname=nuestrabasededatos;host=127.0.0.1'; | |
$user = 'dbuser'; | |
$password = 'dbpass'; |