Commit 43a1273b authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

get remote list blank

parent 3948fd6f
<?php
/*
FILE NAME : get_designs_list.php
DESCRIPTION: optical design
REVISION: 1.00
AUTHOR: Oleg Dzhimiev <oleg@elphel.com>
LICENSE: AGPL, see http://www.gnu.org/licenses/agpl.txt
Copyright (C) 2014 Elphel, Inc.
*/
//$res_xml = file_get_contents("sensors/sensors.xml");
$path = "local";
$res_xml = "<?xml version='1.0'?>\n";
$res_xml .= "<Document>\n";
$files = scandir($path);
foreach($files as $file){
if (is_file("$path/$file")) {
$res_xml .= "\t<file>$file</file>\n";
}
}
$res_xml .= "</Document>";
header("Content-Type: text/xml");
header("Content-Length: ".strlen($res_xml)."\n");
header("Pragma: no-cache\n");
printf("%s", $res_xml);
flush();
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment