added retrieve_data.php
This commit is contained in:
parent
a295004562
commit
bc323ec085
1 changed files with 12 additions and 0 deletions
12
includes/retrieve_data.php
Normal file
12
includes/retrieve_data.php
Normal 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);
|
||||||
|
|
||||||
|
?>
|
Loading…
Add table
Reference in a new issue