Again, the fact they're directory junctions is pretty important here, since 
they do NOT work like symlinks.  They work similarly to symlinks if you use 
them on directories, but they were created for a different purpose 
altogether.  They were created to give Windows users something similar to 
the ability to mount a filesystem into a directory, instead of a different 
volume (e.g., mount a filesystem into C:\Documents and Settings, instead of 
D:\).
As far as I know you cannot use them to create symlinks for files, which 
means they're not equivalent of UNIX symlinks at all.  What happens when 
you use your functions on files?  My guess is that they create bogus entries.

Zeev

At 12:30 PM 7/7/2002, Timo Weingärtner wrote:
>As I said they are directory junctions, but they work like symlinks. I
>wanted to ask if you could include it in one of the next versions of PHP,
>because I don't know much about programming in C. In the meantime I wrote a
>PHP script that executes the tool mentioned below and processes the output,
>but that's not very fast. I think it should be faster if the required code
>would be included in PHP itself. I know that Apache 2.x recognizes junctions
>under NT (Options FollowSymlinks). It would be nice to have the code
>included in PHP.
>
>Thanks in advance, Timo Weingärtner
>
>-----Original Message-----
>From: Zeev Suraski [mailto:[EMAIL PROTECTED]]
>Sent: Samstag, 6. Juli 2002 16:55
>To: Timo Weingärtner
>Cc: [EMAIL PROTECTED]
>Subject: Re: [PHP-DEV] FEATURE REQUEST: symlinks under NT
>
>
>Are you sure they're equivalent to symlinks?  They only work with
>directories as far as I know, which renders them significantly less useful
>than UNIX symlinks.
>
>Zeev
>
>At 05:26 PM 7/6/2002, Timo Weingärtner wrote:
> >NTFS supports directory junctions which are equivalent to unix symlinks.
> >I found a tool that can create, read and delete such junctions.
> >Is there are posiibility to include that code into php so that it supports
> >it in realpath(), symlink(), linkinfo(), readlink(), filetype(), is_link(),
> >stat(), lstat()?
> >The complete source code can be found at:
> >http://www.sysinternals.com/files/jnctnsrc.zip
> >
> >
> >
> >
> >--
> >PHP Development Mailing List <http://www.php.net/>
> >To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>--
>PHP Development Mailing List <http://www.php.net/>
>To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to