This file contains hidden or 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
<?php | |
foreach ($viewInclude as $vIN) { | |
foreach ($viewIncludeEdit as $vIE) { | |
if ($vIE["includes_place_rel_id"]==$vIN["id_includes"]) { | |
?> | |
<div class="col-md-6"> | |
<input type="checkbox" name="inclu[]" style="margin:5px" value="<?php echo $vIN["id_includes"]; ?>" checked> | |
<?php echo $vIN["name_includes"]; ?> | |
</div> |
This file contains hidden or 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
<?php | |
$datafeed= file_get_contents("http://rate-exchange.appspot.com/currency?from=USD&to=DOP"); | |
$obj = json_decode($datafeed); | |
echo $obj->{'rate'}; | |
?> |
This file contains hidden or 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
<?php | |
header("Content-type: text/xml"); | |
$xml = new DomDocument('1.0', 'utf-8'); | |
$xml->formatOutput = true; | |
// creating base node | |
$urlset = $xml->createElement('urlset'); | |
$urlset -> appendChild( |
This file contains hidden or 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
<?php | |
$tr=null; | |
$trend=null; | |
$nametest=null; | |
for ($i=0; $i < 4; $i++) { | |
$tr.='<tr>'; |
This file contains hidden or 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
<?php | |
/* conversor_divisas() | |
* | |
* Conversor de moneda usando la API de Google | |
*/ | |
function currency($from, $to, $amount) | |
{ |
This file contains hidden or 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
<html> | |
<head> | |
<title>Ejemplo de pago mediante la API de PayPal</title> | |
</head> |
This file contains hidden or 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
<?php | |
// Creamos un directorio o carpeta | |
$directorio = "mis_fotos"; | |
$dirmake = mkdir("$directorio", 0777); | |
?> | |
=================================== | |
<?php | |
// Eliminamos un directorio o carpeta vacio |
This file contains hidden or 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
<?php | |
/** | |
* [stringUrl limpiar url amigables] | |
* @return [type] [string] | |
*/ | |
public static function stringUrl($String) { | |
$String = trim($String); | |
$stringArray = array( | |
'Š'=>'S', 'š'=>'s', 'Ž'=>'Z', 'ž'=>'z', 'C'=>'C', 'c'=>'c', 'C'=>'C', 'c'=>'c', |
This file contains hidden or 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 validarn(e) { | |
tecla = (document.all) ? e.keyCode : e.which; | |
if (tecla==8) return true; | |
if (tecla==9) return true; | |
if (tecla==11) return true; | |
if (tecla==32) return false; | |
patron = /[A-Za-zñÑ'áéíóúÁÉÍÓÚàèìòùÀÈÌÒÙâêîôûÂÊÎÔÛÑñäëïöüÄËÏÖÜ\s\t]/; // 4 | |
te = String.fromCharCode(tecla); | |
return patron.test(te); |