Join Up!
104886 members and counting!

 
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links 
search for in the  
previousreadlinkrenamenext
Last updated: Mon, 28 Oct 2002
view the printer friendly version or the printer friendly version with notes or change language to Czech | Spanish

realpath

(PHP 4 )

realpath -- Erzeugt einen kanonisch absoluten Pfadnamen

Beschreibung

string realpath ( string path)

realpath() expandiert alle symbolischen Links, und beseitigt Verweise zu '/./', '/../' und extra '/' Zeichen im Input path, und gibt den absoluten Pfadnamen kanonisch zurück. Der Pfad im Ergebnis enthält keine Komponenten eines symbolischen Links mehr, wie '/./' or '/../'.

realpath() gibt im Fehlerfall FALSE zurück, z.B. wenn die Datei nicht existiert.

Beispiel 1. realpath()

$real_path = realpath("../../index.php");

Siehe auch: basename(), dirname() und pathinfo().

User Contributed Notes
realpath
add a note about notes
There are no user contributed notes for this page.
previousreadlinkrenamenext
Last updated: Mon, 28 Oct 2002
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by: http://phpbuilder.com/
Last updated: Thu Oct 31 18:34:28 2002 EST