с этим php кодом:
<? header('Content-type: application/json'); ?>
<?
$files = glob("sources/".$_GET['dir'].'/img/*');
echo json_encode($files);
?>
Я получаю:
["sources\/nine\/img\/0010.jpg","sources\/nine\/img\/0011.jpg"]
Но я хочу:
["sources/nine/img/0010.jpg","sources/nine/img/0011.jpg"]