File: list_plots.php

package info (click to toggle)
assemblytics 1.0+ds-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 416 kB
  • sloc: python: 564; perl: 234; php: 124; sh: 94; makefile: 11
file content (8 lines) | stat: -rw-r--r-- 241 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
<?php
    $code=$_POST['code'];
    // echo json_encode(shell_exec("ls user_data/". $code . "/*.png"));

    // $pattern = "user_data/".$code."/*.png";
    $filenames = glob("user_data/".$code."/*.png");
    echo json_encode($filenames);
?>