1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
$source = "./resources/bootstrap-3.3.6-dist/"; // source folder or file $destination = "./$created_app_directory/bootstrap-3.3.6-dist"; // destination folder or file function recurse_copy($source, $destination) { $dir = opendir($source); mkdir($destination); while (false !== ($file = readdir($dir))) { if (($file != '.') && ($file != '..')) { if (is_dir($source . '/' . $file)) { recurse_copy($source . '/' . $file, $destination . '/' . $file); } else { copy($source . '/' . $file, $destination . '/' . $file); } } } closedir($dir); } recurse_copy($source, $destination); |
Regular Expression to find Php Short Tags
Webuilder
<\?\s
Replace Studio
<\?\r
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
CREATE TABLE `users` ( id BINARY(16) NOT NULL, user VARCHAR(15) NOT NULL , PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /* Insert */ INSERT INTO users (id) VALUES ( UNHEX(REPLACE(UUID(), '-', '')) ) //Select SELECT hex(id), user FROM users /* Select Where */ SELECT hex(id), user FROM users WHERE id = unhex('A14CDAF7127511E696BE3085A9AE86BC')/* Hexed value */ SELECT HEX( CONCAT( SUBSTR(field_binary, 15, 4), SUBSTR(field_binary, 10, 4), SUBSTR(field_binary, 1, 8), SUBSTR(field_binary, 20, 4), SUBSTR(field_binary, 25) ) ) FROM users |
|
DELIMITER # CREATE TRIGGER insert_guid BEFORE INSERT ON my_table FOR EACH ROW BEGIN SET NEW.guid_key = UUID(); END; # DELIMITER ; |
mysql> SELECT COUNT(*) as repetitions, last_name, first_name
-> FROM person_tbl
-> GROUP BY last_name, first_name
-> HAVING repetitions > 1;
To easily view hidden characters in a string just echo the string with json_encode. You will be able to see all the \n and \r\n hidden characters.
|
$str = "..."; echo json_encode($str); |
Expert Freelance Programming Services