In case you run into a cross-platform issue when retrieving the sub-path , use FilesystemIterator::UNIX_PATHS flag to fix it
RecursiveDirectoryIterator::getSubPathname
(PHP 5 >= 5.1.0)
RecursiveDirectoryIterator::getSubPathname — Get sub path and name
Descrierea
public string RecursiveDirectoryIterator::getSubPathname
( void
)
Gets the sub path and filename.
Avertizare
Această funcție nu este documentată în prezent; este disponibilă numai lista sa de argumente.
Parametri
Această funcție nu are parametri.
Valorile întoarse
The sub path (sub directory) and filename.
Vedeți de asemenea
- RecursiveDirectoryIterator::getSubPath() - Get sub path
- RecursiveDirectoryIterator::key() - Return path and filename of current dir entry
info at diy-cms dot com
29-Apr-2011 10:50
