|
|
 |
link (PHP 3, PHP 4 ) link -- Crée un lien. Descriptionint link ( string target, string link)
link() crée un lien.
Voir aussi
symlink() pour créer des liens
symboliques et
readlink() avec linkinfo().
Note :
link() est inopérante sous Windows.
User Contributed Notes link |
add a note |
karel at publihost dot com
22-Jan-2000 06:43 |
|
$string_source = "/usr/local/...";
$string_target =
"/usr/local/...";
$file =
link($string_source,$string-target");
karel@publihost.com
Karel
Mertens, Belgium
22 januari 2000
|
|
carl.seleborg at ifrance.com
01-Aug-2001 12:11 |
|
If this source/target notation is confusing to you (well, it was to me at
first), try this approach :
link($existing_file,
$new_name);
Carl
|
|
php-link at soffen dot com
19-Jul-2002 05:23 |
|
What does the return value mean ?
I belive that 1 = Success, is
that correct (Same for Unlink ?) ?
|
|
daniel at d3tec dot net
22-Oct-2002 03:10 |
|
As the majority of functions.. 1 when success, 0 when failed...
|
|
tom at tom420 dot com
06-Nov-2002 09:14 |
|
If this function is confusing for you, then you are not familiar with Unix
where the command to create a link is exactly the same:
ln
<target> <link_name>
where target is the file you want
a link to and link_name is the name (and location) of the new
link
Also, you should considere the returned value to be true of
false, not 1 or 0, like:
if (link (bla, bla)) { echo
"ok"; } else { echo "failed"; }
|
|
add a note |
| |