Gold Vision Communications / USA
 GOLDVISION.COM
Serving the Multimedia Community since 1989.
German Site | Spanish Site 

 Web Hosting

 Virtual Dedicated Servers

 Domaincheck

 Order

 Order Status

 Support

 Contact us

 Download

 Network

 Network Status

 Webdesign / Templates

 Make Payment

 Terms & Conditions

 Imprint

 Legal Notices

 Privacy Statement
  PHP / dirname
dirname

dirname

(PHP 3, PHP 4 )

dirname -- Devuelve la parte del path correspondiente al directorio

Descripción

string dirname ( string path)

Dada una cadena (string) conteniendo el path a un fichero, esta función devolverá el nombre del directorio.

En Windows, tanto la barra (/) como la barra inversa (\) son usadas como separadores de caracteres. En otros entornos, debe usarse la barra directa (/).

Ejemplo 1. Ejemplo de dirname()

$path = "/etc/passwd";
$file = dirname($path); // $file toma el valor "/etc"

Ver también: basename()


© 1998-2007 Gold Vision Communications All Rights Reserved.