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

 Web Hosting

 Virtual Dedicated Servers

 Chequeo de dominio

 Haga su pedido

 Estado del pedido

 Support

 Contáctenos

 Download

 Network

 Network Status

 Webdesign / Templates

 Efectuar pago

 Terms & Conditions

 Imprimir

 Notas Legales

 Declaración de Privacidad
  PHP / pathinfo
pathinfo

pathinfo

(PHP 4 >= 4.0.3)

pathinfo -- Liefert Informationen über den Dateipfad

Beschreibung

array pathinfo ( string path)

pathinfo() gibt ein assoziatives Array mit Informationen über den Pfad path zurück. Die folgenden Arrayelemente werden zurückgegeben: den Verzeichnisnamen dirname, den Dateinamen basename, und die Dateinamenserweiterung extension.

Beispiel 1. pathinfo()

<?php

$path_parts = pathinfo("/www/htdocs/index.html");

echo $path_parts["dirname"] . "\n";
echo $path_parts["basename"] . "\n";
echo $path_parts["extension"] . "\n";

?>

Würde ausgeben:

/www/htdocs
index.html
html

Siehe auch dirname(), basename(), parse_url() und realpath().


© 1998-2007 Gold Vision Communications All Rights Reserved.