★ wanayoo — archive 1999 http://uk.php.net/manual/tr/function.readlink.phpNouvelle recherche | Portail wanayoo
PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<readfilerealpath>
view the version of this page
Last updated: Sat, 10 Jan 2004

readlink

(PHP 3, PHP 4 )

readlink -- Returns the target of a symbolic link

Description

string readlink ( string path)

readlink() does the same as the readlink C function and returns the contents of the symbolic link path or 0 in case of error.

Örnek 1. readlink() example

<?php

// output e.g. /boot/vmlinux-2.4.20-xfs
echo readlink('/vmlinuz');

?>

See also is_link(), symlink(), and linkinfo().



add a note add a note User Contributed Notes
readlink
mads at diehard dot dk
30-Jun-2003 07:46
Please be adviced that the symbolic link-functions don't work on Win2K/Win2003 NTFS-filesystems. The shortcut-files that they are using as links are identified as files by the is_file() function.
23-Jun-2001 01:32
for example, show the current process id :

$pid = readlink("/proc/self");

echo($pid);

<readfilerealpath>
 Last updated: Sat, 10 Jan 2004
show source | credits | sitemap | contact | mirror sites 
Copyright © 2001-2004 The PHP Group
All rights reserved.
This mirror generously provided by: Kewlio.net Limited
Last updated: Tue Jan 20 13:14:39 2004 GMT