"Andy Hassall" wrote:[color=blue]
> On 19 Jan 2005 16:20:42 -0500, steve
> <UseLinkToEmail@dbForumz.com> wrote:
>[color=green]
> >$cwd = getcwd(); //get working directory
> >if (strstr($cwd, ":")) it is Windows....[/color]
>
> andyh@server:~/tmp$ mkdir :
> andyh@server:~/tmp$ ls -ld :
> drwxr-xr-x 2 andyh users 4096 2005-01-19 21:22 :/
> andyh@server:~/tmp$ uname -a
> Linux server 2.4.26 #1 Wed Oct 27 19:32:01 BST 2004 i586
> unknown unknown
> GNU/Linux
>
> :-p
>
> --
> Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
> <http://www.andyhsoftware.co.uk/space> Space: disk usage
> analysis tool[/color]
Hi Andy,
Ok, I did not know you can insert ":" into a unix path. I would
never have that situation with my paths, since they are totally under
my control -for webserving. In any case, the use of PHP_OS is a lot
better.
--
Posted using the
http://www.dbforumz.com interface, at author's request
Articles individually checked for conformance to usenet standards
Topic URL:
http://www.dbforumz.com/PHP-good-det...ict189356.html
Visit Topic URL to contact author (reg. req'd). Report abuse:
http://www.dbforumz.com/eform.php?p=640400