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
CREATE TABLE widgets ( | |
id int NOT NULL identity(1,1), | |
uuid varchar(100) NOT NULL, | |
title varchar(250) NOT NULL, | |
thumbnail varchar(300) DEFAULT NULL, |
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
[ | |
{ | |
"_schema": "ddi2 codebook", | |
"_title": "DDI2 IHSN template", | |
"_description": "Template for Survey data type based on DDI 2.5", | |
"type": "fieldset", | |
"htmlClass": "form_fieldset form-fieldset-toggle", | |
"title": "Document", | |
"onClick": "toggle()", | |
"items": [ |
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
<?php | |
//usage | |
$paths_array=$print_paths("path-to-xml-file"); | |
var_dump($paths_array); | |
function print_paths($xml_file) |
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
/** | |
* | |
* Using CURL to download partial content from a URL | |
* | |
* @url file URL to download | |
* @range_start Start range in bytes | |
* @range_end End range in bytes | |
* | |
* | |
* example: curl_get_content("http://www.example.org/some-file.zip",100,500) |