Jump to content


  • Posts

  • Joined

  • Last visited


0 Neutral

About Theboy22

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. multumesc mult, intrebarea mea este, cum implementez ce ai zi tu la mine in scriptul de mai sus?
  2. am urmatorul script: <?php $path = "upload"; if(isset($_POST['file']) && is_array($_POST['file'])) { foreach($_POST['file'] as $file) { unlink($path . "/" . $file) or die("Failed to <strong class='highlight'>delete</strong> file"); } header("location: " . $_SERVER['REQUEST_URI']); //redirect after deleting files so the user can refresh without that resending post info message } ?> <form name="form1" method="post"> <?php $path = "upload"; $dir_handle = @opendir($path) or die("Unable to open folder"); while (false !== ($file = readdir($dir_handle))) { if($file == "index.php") continue; if($file == ".") continue; if($file == "..") continue; echo "<input type='CHECKBOX' name='file[]' value='$file'>"; echo "<a href='upload/$file' target='_blank'>"; echo "<img src='upload/$file' alt='$file' style='height: 100px; width: 100px;'/></a>&nbsp;&nbsp;"; } closedir($dir_handle); ?> <br> <input type="submit" name="Delete" value="Delete"> </form> scriptul imi afiseaza fotografiile din folderul UPLOAD, dar as vrea sa le afiseze in ordine cronologica cum au fost upldate . Mentionez fotograriile cand sunt uplodate in folderul UPLOAD au numele la data si ora de upload Exemplu: 2022-03-30-14-33-33_62444e1d7cf18.jpg. Imi cer scuze ca primul meu topic a inceput cu o cerere de ajutor. Va multumesc anticipat
  • Create New...