added retrieve_data.php

This commit is contained in:
Actaeus Curabitur 2017-10-31 02:32:25 +00:00
parent a295004562
commit bc323ec085

View file

@ -0,0 +1,12 @@
<?php
$fname = "/srv/http/sitedata.yml";
$myfile = fopen($fname, "r") or die("Unable to open file!");
$data = fread($myfile,filesize($fname));
fclose($myfile);
$parsed = yaml_parse($data);
var_dump($parsed);
?>