Windows Symlinks ?

View: New views
16 Messages — Rating Filter:   Alert me  

Windows Symlinks ?

by Paul M Jones-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi everybody,

Support for Windows symlinks may be forthcoming in Solar, pending  
future tests based on this article:

   <http://www.maxi-pedia.com/mklink>

Has anyone here tried the `mklink` Windows command as described therein?



--

Paul M. Jones
http://paul-m-jones.com/




_______________________________________________
Solar-talk mailing list
Solar-talk@...
http://mailman-mail5.webfaction.com/listinfo/solar-talk

Re: Windows Symlinks ?

by Robert Gonzalez-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Isn't mklink a Vista only utility?

On Tue, Sep 29, 2009 at 9:56 AM, Paul M Jones <pmjones@...> wrote:
Hi everybody,

Support for Windows symlinks may be forthcoming in Solar, pending
future tests based on this article:

  <http://www.maxi-pedia.com/mklink>

Has anyone here tried the `mklink` Windows command as described therein?



--

Paul M. Jones
http://paul-m-jones.com/




_______________________________________________
Solar-talk mailing list
Solar-talk@...
http://mailman-mail5.webfaction.com/listinfo/solar-talk



--

Robert Gonzalez
http://www.robert-gonzalez.com

_______________________________________________
Solar-talk mailing list
Solar-talk@...
http://mailman-mail5.webfaction.com/listinfo/solar-talk

Re: Windows Symlinks ?

by Paul M Jones-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Sep 29, 2009, at 12:39 , Robert Gonzalez wrote:

> Isn't mklink a Vista only utility?

Looks like it, per this: <http://msdn.microsoft.com/en-us/library/aa365680%28VS.85%29.aspx 
 >


--

Paul M. Jones
http://paul-m-jones.com/




_______________________________________________
Solar-talk mailing list
Solar-talk@...
http://mailman-mail5.webfaction.com/listinfo/solar-talk

Re: Windows Symlinks ?

by Jon Elofson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have created a symlink in windows 7. I have not tested the
functionality via a web server like apache, though. What I do know is
that you have to run the command as an administrator and this doesn't
seem to be the same as being an admin user. I had to start the command
prompt as administrator (right click, run as administrator).

Jon

On 9/29/09, Paul M Jones <pmjones@...> wrote:

>
> On Sep 29, 2009, at 12:39 , Robert Gonzalez wrote:
>
>> Isn't mklink a Vista only utility?
>
> Looks like it, per this:
> <http://msdn.microsoft.com/en-us/library/aa365680%28VS.85%29.aspx
>  >
>
>
> --
>
> Paul M. Jones
> http://paul-m-jones.com/
>
>
>
>
> _______________________________________________
> Solar-talk mailing list
> Solar-talk@...
> http://mailman-mail5.webfaction.com/listinfo/solar-talk
>
_______________________________________________
Solar-talk mailing list
Solar-talk@...
http://mailman-mail5.webfaction.com/listinfo/solar-talk

Re: Windows Symlinks ?

by Edwin F. Lopez A. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All.

Is it possible to use another approach for windows boxes?

I recognize the power of symlinks in unix boxes, but for taking full
advantage of the solar cli tool in a windows environment, I think that
another approach should be taken besides symlinks...

Any idea or recommendation? From my experience, I always had to set
manually the folder environment, loosing the code generation feature
of the solar-cli.

Thank you.
____________________________
Edwin F. López A.
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨




2009/9/29 Jon Elofson <jon.elofson@...>:

> I have created a symlink in windows 7. I have not tested the
> functionality via a web server like apache, though. What I do know is
> that you have to run the command as an administrator and this doesn't
> seem to be the same as being an admin user. I had to start the command
> prompt as administrator (right click, run as administrator).
>
> Jon
>
> On 9/29/09, Paul M Jones <pmjones@...> wrote:
>>
>> On Sep 29, 2009, at 12:39 , Robert Gonzalez wrote:
>>
>>> Isn't mklink a Vista only utility?
>>
>> Looks like it, per this:
>> <http://msdn.microsoft.com/en-us/library/aa365680%28VS.85%29.aspx
>>  >
>>
>>
>> --
>>
>> Paul M. Jones
>> http://paul-m-jones.com/
>>
>>
>>
>>
>> _______________________________________________
>> Solar-talk mailing list
>> Solar-talk@...
>> http://mailman-mail5.webfaction.com/listinfo/solar-talk
>>
> _______________________________________________
> Solar-talk mailing list
> Solar-talk@...
> http://mailman-mail5.webfaction.com/listinfo/solar-talk
>
_______________________________________________
Solar-talk mailing list
Solar-talk@...
http://mailman-mail5.webfaction.com/listinfo/solar-talk

Re: Windows Symlinks ?

by Raymond Kolbe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am running Solar alpha4 w/ZendServer CE and have manually created the
symlinks (soft) needed for Solar. Everything is golden. mklink is what
you want to use.

Thank you,
Ray Kolbe

Paul M Jones wrote:

> Hi everybody,
>
> Support for Windows symlinks may be forthcoming in Solar, pending  
> future tests based on this article:
>
>    <http://www.maxi-pedia.com/mklink>
>
> Has anyone here tried the `mklink` Windows command as described therein?
>
>
>
>  

_______________________________________________
Solar-talk mailing list
Solar-talk@...
http://mailman-mail5.webfaction.com/listinfo/solar-talk

Re: Windows Symlinks ?

by Edwin F. Lopez A. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Another good and interesting link about mklink:
http://shell-shocked.org/article.php?id=284
____________________________
Edwin F. López A.
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
_______________________________________________
Solar-talk mailing list
Solar-talk@...
http://mailman-mail5.webfaction.com/listinfo/solar-talk

Re: Windows Symlinks ?

by Raymond Kolbe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If you are running PHP 5.3+, symlink() will work for Windows Vista/2008
or greater. http://us2.php.net/manual/en/function.symlink.php

Edwin F. Lopez A. wrote:
> Another good and interesting link about mklink:
> http://shell-shocked.org/article.php?id=284
> ____________________________
> Edwin F. López A.
> ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
> _______________________________________________
> Solar-talk mailing list
> Solar-talk@...
> http://mailman-mail5.webfaction.com/listinfo/solar-talk

_______________________________________________
Solar-talk mailing list
Solar-talk@...
http://mailman-mail5.webfaction.com/listinfo/solar-talk

Re: Windows Symlinks ?

by Anthony Gentile :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

For pre-Vista compatibility you may want to look into the 'subst' cmd, could use fsutil for hard links, and then there is also a sysinternals tool called junction... so perhaps some checks for the os and php version and then have it use the appropriate cmd or php func as needed.

Anthony Gentile


On Tue, Sep 29, 2009 at 6:28 PM, Raymond Kolbe <rkolbe@...> wrote:
If you are running PHP 5.3+, symlink() will work for Windows Vista/2008
or greater. http://us2.php.net/manual/en/function.symlink.php

Edwin F. Lopez A. wrote:
> Another good and interesting link about mklink:
> http://shell-shocked.org/article.php?id=284
> ____________________________
> Edwin F. López A.
> ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
> _______________________________________________
> Solar-talk mailing list
> Solar-talk@...
> http://mailman-mail5.webfaction.com/listinfo/solar-talk

_______________________________________________
Solar-talk mailing list
Solar-talk@...
http://mailman-mail5.webfaction.com/listinfo/solar-talk


_______________________________________________
Solar-talk mailing list
Solar-talk@...
http://mailman-mail5.webfaction.com/listinfo/solar-talk

Re: Windows Symlinks ?

by Raymond Kolbe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Seems like a lot to support for very little payout. Let the pre-Vista
people copy their directories and files, and/or stop hosting on
XP/2000/2003 servers.

Just my 2 cents.

Ray Kolbe

Anthony Gentile wrote:

> For pre-Vista compatibility you may want to look into the 'subst' cmd,
> could use fsutil for hard links, and then there is also a sysinternals
> tool called junction... so perhaps some checks for the os and php
> version and then have it use the appropriate cmd or php func as needed.
>
> Anthony Gentile
>
>
> On Tue, Sep 29, 2009 at 6:28 PM, Raymond Kolbe <rkolbe@...
> <mailto:rkolbe@...>> wrote:
>
>     If you are running PHP 5.3+, symlink() will work for Windows
>     Vista/2008
>     or greater. http://us2.php.net/manual/en/function.symlink.php
>
>     Edwin F. Lopez A. wrote:
>     > Another good and interesting link about mklink:
>     > http://shell-shocked.org/article.php?id=284
>     > ____________________________
>     > Edwin F. López A.
>     > ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
>     > _______________________________________________
>     > Solar-talk mailing list
>     > Solar-talk@... <mailto:Solar-talk@...>
>     > http://mailman-mail5.webfaction.com/listinfo/solar-talk
>
>     _______________________________________________
>     Solar-talk mailing list
>     Solar-talk@... <mailto:Solar-talk@...>
>     http://mailman-mail5.webfaction.com/listinfo/solar-talk
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Solar-talk mailing list
> Solar-talk@...
> http://mailman-mail5.webfaction.com/listinfo/solar-talk

_______________________________________________
Solar-talk mailing list
Solar-talk@...
http://mailman-mail5.webfaction.com/listinfo/solar-talk

Re: Windows Symlinks ?

by Edwin F. Lopez A. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Raymond/All.

So, how can we develop a solution that could be deployable *anywhere*
(I mean, Operating System as indepent as possible, and assuming I'm
developing in Linux/*BSD where I can trust solar-cli) ?

What would be your best recommendation?

Manually creating the folder infrastructure can be cumbersome, and I
(personally) prefer using my time working in the solution, instead of
setting folder structures.

Any thoughts? Thank you.
____________________________
Edwin F. López A.
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨




2009/9/29 Raymond Kolbe <rkolbe@...>:

> Seems like a lot to support for very little payout. Let the pre-Vista
> people copy their directories and files, and/or stop hosting on
> XP/2000/2003 servers.
>
> Just my 2 cents.
>
> Ray Kolbe
>
> Anthony Gentile wrote:
>> For pre-Vista compatibility you may want to look into the 'subst' cmd,
>> could use fsutil for hard links, and then there is also a sysinternals
>> tool called junction... so perhaps some checks for the os and php
>> version and then have it use the appropriate cmd or php func as needed.
>>
>> Anthony Gentile
>>
>>
>> On Tue, Sep 29, 2009 at 6:28 PM, Raymond Kolbe <rkolbe@...
>> <mailto:rkolbe@...>> wrote:
>>
>>     If you are running PHP 5.3+, symlink() will work for Windows
>>     Vista/2008
>>     or greater. http://us2.php.net/manual/en/function.symlink.php
>>
>>     Edwin F. Lopez A. wrote:
>>     > Another good and interesting link about mklink:
>>     > http://shell-shocked.org/article.php?id=284
>>     > ____________________________
>>     > Edwin F. López A.
>>     > ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
>>     > _______________________________________________
>>     > Solar-talk mailing list
>>     > Solar-talk@... <mailto:Solar-talk@...>
>>     > http://mailman-mail5.webfaction.com/listinfo/solar-talk
>>
>>     _______________________________________________
>>     Solar-talk mailing list
>>     Solar-talk@... <mailto:Solar-talk@...>
>>     http://mailman-mail5.webfaction.com/listinfo/solar-talk
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Solar-talk mailing list
>> Solar-talk@...
>> http://mailman-mail5.webfaction.com/listinfo/solar-talk
>
> _______________________________________________
> Solar-talk mailing list
> Solar-talk@...
> http://mailman-mail5.webfaction.com/listinfo/solar-talk
>
_______________________________________________
Solar-talk mailing list
Solar-talk@...
http://mailman-mail5.webfaction.com/listinfo/solar-talk

Re: Windows Symlinks ?

by Raymond Kolbe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

For symlinks, I would suggest using PHP's symlink() function. If you
want support for symlinks on Windows, make sure you haev PHP 5.3+ and
you are running Vista/2008+ for your server. I think we only need to add
support for the most likely setups (for now), which would be *nix,
Vista/2008.

I am open to hear what other people think.

Ray Kolbe

Edwin F. Lopez A. wrote:

> Hi Raymond/All.
>
> So, how can we develop a solution that could be deployable *anywhere*
> (I mean, Operating System as indepent as possible, and assuming I'm
> developing in Linux/*BSD where I can trust solar-cli) ?
>
> What would be your best recommendation?
>
> Manually creating the folder infrastructure can be cumbersome, and I
> (personally) prefer using my time working in the solution, instead of
> setting folder structures.
>
> Any thoughts? Thank you.
> ____________________________
> Edwin F. López A.
> ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
>
>
>
>
> 2009/9/29 Raymond Kolbe <rkolbe@...>:
>  
>> Seems like a lot to support for very little payout. Let the pre-Vista
>> people copy their directories and files, and/or stop hosting on
>> XP/2000/2003 servers.
>>
>> Just my 2 cents.
>>
>> Ray Kolbe
>>
>> Anthony Gentile wrote:
>>    
>>> For pre-Vista compatibility you may want to look into the 'subst' cmd,
>>> could use fsutil for hard links, and then there is also a sysinternals
>>> tool called junction... so perhaps some checks for the os and php
>>> version and then have it use the appropriate cmd or php func as needed.
>>>
>>> Anthony Gentile
>>>
>>>
>>> On Tue, Sep 29, 2009 at 6:28 PM, Raymond Kolbe <rkolbe@...
>>> <mailto:rkolbe@...>> wrote:
>>>
>>>     If you are running PHP 5.3+, symlink() will work for Windows
>>>     Vista/2008
>>>     or greater. http://us2.php.net/manual/en/function.symlink.php
>>>
>>>     Edwin F. Lopez A. wrote:
>>>     > Another good and interesting link about mklink:
>>>     > http://shell-shocked.org/article.php?id=284
>>>     > ____________________________
>>>     > Edwin F. López A.
>>>     > ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
>>>     > _______________________________________________
>>>     > Solar-talk mailing list
>>>     > Solar-talk@... <mailto:Solar-talk@...>
>>>     > http://mailman-mail5.webfaction.com/listinfo/solar-talk
>>>
>>>     _______________________________________________
>>>     Solar-talk mailing list
>>>     Solar-talk@... <mailto:Solar-talk@...>
>>>     http://mailman-mail5.webfaction.com/listinfo/solar-talk
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Solar-talk mailing list
>>> Solar-talk@...
>>> http://mailman-mail5.webfaction.com/listinfo/solar-talk
>>>      
>> _______________________________________________
>> Solar-talk mailing list
>> Solar-talk@...
>> http://mailman-mail5.webfaction.com/listinfo/solar-talk
>>
>>    
> _______________________________________________
> Solar-talk mailing list
> Solar-talk@...
> http://mailman-mail5.webfaction.com/listinfo/solar-talk

_______________________________________________
Solar-talk mailing list
Solar-talk@...
http://mailman-mail5.webfaction.com/listinfo/solar-talk

Re: Windows Symlinks ?

by Anthony Gentile :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

My two cents,

    Well, here's the thing. I'm sure it is safe to say that most if not all of us using Solar are throwing it on unix and probably wonder who the heck are these people running web-sites on IIS and such. Believe it or not, it's quite a bit. There is a push for PHP to be more friendly on IIS and I keep seeing Microsoft pushing to be more open source friendly (in their own kind of way). I see things like this: http://news.netcraft.com/archives/web_server_survey.html  and I wonder about how accurate that is, but regardless, the numbers for Microsoft I don't think are anything to sneeze at and I doubt most of those are Vista/2008. I love Solar and personally, I would like to see it become as popular as possible and I would love to see it be just as smooth a setup for everyone, including the Windows setups.

Anthony Gentile


_______________________________________________
Solar-talk mailing list
Solar-talk@...
http://mailman-mail5.webfaction.com/listinfo/solar-talk

Re: Windows Symlinks ?

by Raymond Kolbe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In Solar/Cli/MakeVendor.php (and where symlinks are made), you could
support Windows (Vista/2008) by doing something like this (around line 201):

// Support for Windows NT 6.0 and 6.1
if (substr(strtolower(php_uname('s')), 0, 3) == 'win' && php_uname('r')
 >= 6) {
    $cmd = "cd $system/$dir & mklink /D $src $tgt";
} else {
    $cmd = "cd $system/$dir; ln -s $src $tgt";
}

I have not tested this out yet, but everything looks like it should
work. As mentioned before, if we were to support Windows XP and 2000 (NT
5.x), we would need to check a few different things to see if the
environment supports creating symlinks (in most cases it will not). I
stand by my opinion, until persuaded otherwise, that supporting NT 5.x
wouldn't be worth it.

Ray Kolbe

Edwin F. Lopez A. wrote:

> Hi Raymond/All.
>
> So, how can we develop a solution that could be deployable *anywhere*
> (I mean, Operating System as indepent as possible, and assuming I'm
> developing in Linux/*BSD where I can trust solar-cli) ?
>
> What would be your best recommendation?
>
> Manually creating the folder infrastructure can be cumbersome, and I
> (personally) prefer using my time working in the solution, instead of
> setting folder structures.
>
> Any thoughts? Thank you.
> ____________________________
> Edwin F. López A.
> ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
>
>
>
>
> 2009/9/29 Raymond Kolbe <rkolbe@...>:
>  
>> Seems like a lot to support for very little payout. Let the pre-Vista
>> people copy their directories and files, and/or stop hosting on
>> XP/2000/2003 servers.
>>
>> Just my 2 cents.
>>
>> Ray Kolbe
>>
>> Anthony Gentile wrote:
>>    
>>> For pre-Vista compatibility you may want to look into the 'subst' cmd,
>>> could use fsutil for hard links, and then there is also a sysinternals
>>> tool called junction... so perhaps some checks for the os and php
>>> version and then have it use the appropriate cmd or php func as needed.
>>>
>>> Anthony Gentile
>>>
>>>
>>> On Tue, Sep 29, 2009 at 6:28 PM, Raymond Kolbe <rkolbe@...
>>> <mailto:rkolbe@...>> wrote:
>>>
>>>     If you are running PHP 5.3+, symlink() will work for Windows
>>>     Vista/2008
>>>     or greater. http://us2.php.net/manual/en/function.symlink.php
>>>
>>>     Edwin F. Lopez A. wrote:
>>>     > Another good and interesting link about mklink:
>>>     > http://shell-shocked.org/article.php?id=284
>>>     > ____________________________
>>>     > Edwin F. López A.
>>>     > ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
>>>     > _______________________________________________
>>>     > Solar-talk mailing list
>>>     > Solar-talk@... <mailto:Solar-talk@...>
>>>     > http://mailman-mail5.webfaction.com/listinfo/solar-talk
>>>
>>>     _______________________________________________
>>>     Solar-talk mailing list
>>>     Solar-talk@... <mailto:Solar-talk@...>
>>>     http://mailman-mail5.webfaction.com/listinfo/solar-talk
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Solar-talk mailing list
>>> Solar-talk@...
>>> http://mailman-mail5.webfaction.com/listinfo/solar-talk
>>>      
>> _______________________________________________
>> Solar-talk mailing list
>> Solar-talk@...
>> http://mailman-mail5.webfaction.com/listinfo/solar-talk
>>
>>    
> _______________________________________________
> Solar-talk mailing list
> Solar-talk@...
> http://mailman-mail5.webfaction.com/listinfo/solar-talk

_______________________________________________
Solar-talk mailing list
Solar-talk@...
http://mailman-mail5.webfaction.com/listinfo/solar-talk

Re: Windows Symlinks ?

by Richard Thomas-9 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think providing support through the symlink function with warnings  
if your environment doesn't look like it will work is a great first  
step.

Anything beyond that would be nice I am sure but its more "gravy"..

Richard Thomas
http://www.cyberlot.net




On Sep 29, 2009, at 6:53 PM, Raymond Kolbe wrote:

> For symlinks, I would suggest using PHP's symlink() function. If you
> want support for symlinks on Windows, make sure you haev PHP 5.3+ and
> you are running Vista/2008+ for your server. I think we only need to  
> add
> support for the most likely setups (for now), which would be *nix,
> Vista/2008.
>
> I am open to hear what other people think.
>
> Ray Kolbe
>
> Edwin F. Lopez A. wrote:
>> Hi Raymond/All.
>>
>> So, how can we develop a solution that could be deployable *anywhere*
>> (I mean, Operating System as indepent as possible, and assuming I'm
>> developing in Linux/*BSD where I can trust solar-cli) ?
>>
>> What would be your best recommendation?
>>
>> Manually creating the folder infrastructure can be cumbersome, and I
>> (personally) prefer using my time working in the solution, instead of
>> setting folder structures.
>>
>> Any thoughts? Thank you.
>> ____________________________
>> Edwin F. López A.
>> ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
>>
>>
>>
>>
>> 2009/9/29 Raymond Kolbe <rkolbe@...>:
>>
>>> Seems like a lot to support for very little payout. Let the pre-
>>> Vista
>>> people copy their directories and files, and/or stop hosting on
>>> XP/2000/2003 servers.
>>>
>>> Just my 2 cents.
>>>
>>> Ray Kolbe
>>>
>>> Anthony Gentile wrote:
>>>
>>>> For pre-Vista compatibility you may want to look into the 'subst'  
>>>> cmd,
>>>> could use fsutil for hard links, and then there is also a  
>>>> sysinternals
>>>> tool called junction... so perhaps some checks for the os and php
>>>> version and then have it use the appropriate cmd or php func as  
>>>> needed.
>>>>
>>>> Anthony Gentile
>>>>
>>>>
>>>> On Tue, Sep 29, 2009 at 6:28 PM, Raymond Kolbe <rkolbe@...
>>>> <mailto:rkolbe@...>> wrote:
>>>>
>>>>    If you are running PHP 5.3+, symlink() will work for Windows
>>>>    Vista/2008
>>>>    or greater. http://us2.php.net/manual/en/function.symlink.php
>>>>
>>>>    Edwin F. Lopez A. wrote:
>>>>> Another good and interesting link about mklink:
>>>>> http://shell-shocked.org/article.php?id=284
>>>>> ____________________________
>>>>> Edwin F. López A.
>>>>> ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
>>>>> _______________________________________________
>>>>> Solar-talk mailing list
>>>>> Solar-talk@... <mailto:Solar-talk@...
>>>>> >
>>>>> http://mailman-mail5.webfaction.com/listinfo/solar-talk
>>>>
>>>>    _______________________________________________
>>>>    Solar-talk mailing list
>>>>    Solar-talk@... <mailto:Solar-talk@...
>>>> >
>>>>    http://mailman-mail5.webfaction.com/listinfo/solar-talk
>>>>
>>>>
>>>> ------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Solar-talk mailing list
>>>> Solar-talk@...
>>>> http://mailman-mail5.webfaction.com/listinfo/solar-talk
>>>>
>>> _______________________________________________
>>> Solar-talk mailing list
>>> Solar-talk@...
>>> http://mailman-mail5.webfaction.com/listinfo/solar-talk
>>>
>>>
>> _______________________________________________
>> Solar-talk mailing list
>> Solar-talk@...
>> http://mailman-mail5.webfaction.com/listinfo/solar-talk
>
> _______________________________________________
> Solar-talk mailing list
> Solar-talk@...
> http://mailman-mail5.webfaction.com/listinfo/solar-talk

_______________________________________________
Solar-talk mailing list
Solar-talk@...
http://mailman-mail5.webfaction.com/listinfo/solar-talk

Re: Windows Symlinks ?

by Paul M Jones-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Sep 29, 2009, at 21:23 , Raymond Kolbe wrote:

> In Solar/Cli/MakeVendor.php (and where symlinks are made), you could
> support Windows (Vista/2008) by doing something like this (around  
> line 201):
>
> // Support for Windows NT 6.0 and 6.1
> if (substr(strtolower(php_uname('s')), 0, 3) == 'win' &&  
> php_uname('r') >= 6) {
>    $cmd = "cd $system/$dir & mklink /D $src $tgt";
> } else {
>    $cmd = "cd $system/$dir; ln -s $src $tgt";
> }
>
> I have not tested this out yet, but everything looks like it should
> work.

I gotta go with Ray here.  As a first step towards Windows support, I  
think this will helpful.


> As mentioned before, if we were to support Windows XP and 2000 (NT
> 5.x), we would need to check a few different things to see if the
> environment supports creating symlinks (in most cases it will not).

Support for Windows systems previous to NT6 will also be good, but it  
seems like a more uncertain enterprise.

Regarding the symlink() function in PHP 5.3 -- does anyone know if it  
works on Windows systems prior to NT6?

Keep in mind that one of the corollary issues is that we need make  
relative symlinks ("../../foo") not absolute ones ("c:\path\to\foo")  
so that git and svn checkouts don't depend on a particular directory  
setup outside the Solar system.


--

Paul M. Jones
http://paul-m-jones.com/




_______________________________________________
Solar-talk mailing list
Solar-talk@...
http://mailman-mail5.webfaction.com/listinfo/solar-talk