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 | |
// open a file on the pc | |
$handle = fopen("data", "w"); | |
// if(($handle = @fopen("lpt1", "w")) === FALSE){ | |
// die('No se puedo Imprimir, Verifique su conexion con el Terminal'); | |
//} | |
fwrite($handle,chr(27). chr(64));//reinicio | |
//fwrite($handle, chr(27). chr(112). chr(48));//ABRIR EL CAJON |
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 | |
function httpRequest($url) | |
{ | |
// make request | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $url); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
curl_setopt($ch, CURLOPT_POST,TRUE); | |
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/x-www-form-urlencoded; charset=UTF-8",)); | |
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 | |
function writeLog($log, $file = 'log.txt') | |
{ | |
$fp = fopen($file, 'a+'); | |
fwrite($fp, $log."\n"); | |
fclose($fp); | |
} |
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
#include <stdio.h> | |
int main(void) { | |
// your code goes here | |
/* local variable definition */ | |
int arrlenth; | |
int *list; | |
int minvalue; | |
int maxvalue; |
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
/* | |
* @param1 = string | |
* return boolean | |
*/ | |
function isUniqueCharater(str){ | |
return str.length === new Set(str).size; | |
} | |
/* |
NewerOlder