Vytvoření adresaře a ověřená zda už neexistuje

8 příspěvků

Archiv diskusního fóra

Fórum je uzavřené a slouží pouze ke čtení. Některé informace mohou být zastaralé.

  1. Poradí někdo jak ověřit zda už adresař neexistuje před jeho vytvořením ? adresař tvořim takto : mkdir("foto/".$_SESSION['userid']."", 0777); echo "Váš adresár byl vytvoren<br>"; a po té hned upload fotek díky za případné rady
  2. http://us3.php.net/manual/en/function.file-exists.php
  3. Česky: http://us3.php.net/manual/cs/function.file-exists.php
  4. Zajímavý je rozdíl v jazykových mutacích manuálu: file_exists -- Checks whether a file or directory exists file_exists -- Zjistí, zda soubor existuje
  5. ale ja nechci zjistit zda existuje soubor ale adresař :-(
  6. file_exists -- Checks whether a file or directory exists
  7. Checks whether a file or directory exists = Zjisti, zda soubor nebo adresar existuje
  8. is_dir();

← Zpět na všechna témata