mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-17 06:20:26 +00:00
17 lines
No EOL
363 B
PHP
17 lines
No EOL
363 B
PHP
<?php
|
|
header("Content-Type: application/json");
|
|
|
|
$response = array( 'directories' => array());
|
|
|
|
if ($handle = opendir(getcwd())) {
|
|
while (false !== ($file = readdir($handle))) {
|
|
if (is_dir($file) && $file[0] !== "." ) {
|
|
array_push($response['directories'], $file);
|
|
}
|
|
}
|
|
|
|
closedir($handle);
|
|
}
|
|
|
|
echo json_encode($response)
|
|
?>
|