PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<readfilerealpath>
Last updated: Mon, 16 Jul 2012

readlink

(PHP 3, PHP 4, PHP 5)

readlink -- 返回符号连接指向的目标

说明

string readlink ( string path )

readlink() 和同名的 C 函数做同样的事,返回符号连接的内容。如果出错返回 0。

例子 1. readlink() 例子

<?php

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

?>

参见 is_link()symlink()linkinfo()




<readfilerealpath>
 Last updated: Mon, 16 Jul 2012
 
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://manual.phpv.net/
Last updated: Thu Jul 7 19:13:47 2005 CST