check-exists.php 418 B

12345678910111213141516
  1. <?php
  2. /*
  3. Uploadify v3.1.0
  4. Copyright (c) 2012 Reactive Apps, Ronnie Garcia
  5. Released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
  6. */
  7. // Define a destination
  8. $targetFolder = '/uploads'; // Relative to the root and should match the upload folder in the uploader script
  9. if (file_exists($_SERVER['DOCUMENT_ROOT'] . $targetFolder . '/' . $_POST['filename'])) {
  10. echo 1;
  11. } else {
  12. echo 0;
  13. }
  14. ?>