PHP Doku:: Return true if the path points to a file, false otherwise - function.svn-fs-is-file.html

Verlauf / Chronik / History: (50) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzSonstige DiensteSubversionSVN Funktionensvn_fs_is_file

Ein Service von Reinhard Neidl - Webprogrammierung.

SVN Funktionen

<<svn_fs_is_dir

svn_fs_make_dir>>

svn_fs_is_file

(PECL svn >= 0.2.0)

svn_fs_is_fileReturn true if the path points to a file, false otherwise

Beschreibung

bool svn_fs_is_file ( resource $root , string $path )
Warnung

Diese Funktion ist bis jetzt nicht dokumentiert. Es steht nur die Liste der Argumente zur Verfügung.

Return true if the path points to a file, false otherwise

Anmerkungen

Warnung

Diese Funktion ist EXPERIMENTELL. Das Verhalten, der Funktionsname und alles Andere, was hier dokumentiert ist, kann sich in zukünftigen PHP-Versionen ohne Ankündigung ändern. Seien Sie gewarnt und verwenden Sie diese Funktion auf eigenes Risiko.


Ein BenutzerBeitrag:
- Beiträge aktualisieren...
ytcheng at qq dot com
19.12.2010 5:16
<?php
    $repos
= svn_repos_open($this->sourceRoot);
   
$fs = svn_repos_fs($repos);
   
$head = svn_fs_youngest_rev($fs);
   
$fsroot = svn_fs_revision_root($fs,$head);
    echo
svn_fs_is_file($fsroot,$path);
?>



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)