This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AuthType Basic | |
AuthName "Mi Sitio Seguro" | |
AuthBasicProvider file | |
AuthUserFile /ruta/completa/ficheroUsuarios | |
Require valid-user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* vbaColorToWeb.php Class to convert VBA color to web Color | |
* | |
* | |
* PHP Version 5.3 | |
* | |
* @author Ruben Lacasa Mas <ruben@rubenlacasa.es> | |
* @copyright 2013 Ruben Lacasa Mas http://rubenlacasa.es | |
* @license http://creativecommons.org/licenses/by-nc-nd/3.0 | |
* CC-BY-NC-ND-3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final class DBConnection { | |
private static $_handle = null; | |
private static $_dsn = "mysql:dbname=mydb;host=my.host.com;port=3306"; | |
private static $_user = "myUserName"; | |
private static $_password = "myPassword"; | |
private static $_options = array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8"); // SET UTF-8 | |
/** | |
* Deny Construct | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function generoPersona($nombre, $provider = 'genderAPI') | |
{ | |
$providers = array( | |
'genderAPI' => array( | |
'url' => 'https://gender-api.com/get?name=', | |
'pais' => '&country=ES' | |
), | |
'genderize' => array( | |
'url' => 'https://api.genderize.io/?name=', | |
'pais' => '&country_id=es' |
OlderNewer