1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
download-manager/property-manager.php
2015-06-13 17:06:42 +01:00

10 lines
No EOL
293 B
PHP

<?php
define("PROPERTIES_FILENAME", "properties.yml");
function load_properties(){
$property_file = fopen("properties.yml", "r") or die("Unable to open properties file!");
$YAML = fread($property_file, filesize(PROPERTIES_FILENAME));
fclose($property_file);
return yaml_parse($YAML);
}
?>