NYCPHP Meetup

NYPHP.org

[nycphp-talk] OS X home directory PHP-CLI

Federico Ulfo rainelemental at gmail.com
Tue Feb 21 20:26:32 EST 2012


$home_dir = exec( "cd ~
    pwd" );

On Tue, Feb 21, 2012 at 8:19 PM, Ron Guerin <ron at vnetworx.net> wrote:

> I don't have a Mac, and I haven't turned up much useful in Google, so
> I'm hoping someone here has written a CLI PHP script for OS X.
>
> I understand that you can't count on HOME to be set.  Is there a
> reliable way to find the user's home directory on OS X in PHP?
>
> - Ron
> _______________________________________________
> New York PHP User Group Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> http://www.nyphp.org/show-participation
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20120221/8a16d4d9/attachment.html>


More information about the talk mailing list