Re: How can I tell if a path is absolute?

From: Date: Sat, 17 Jul 2004 11:02:20 +0000
Subject: Re: How can I tell if a path is absolute?
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-190835@lists.php.net to get a copy of this message
Tularis wrote: > c:/ wouldn't even work as a path on unix systems. [134] trejkaz@raven:/tmp> mkdir c: [135] trejkaz@raven:/tmp> ls -la c:/ total 8 drwxr-xr-x 2 trejkaz users 4096 Jul 17 21:01 . drwxrwxrwt 52 root root 4096 Jul 17 21:01 .. You were saying? Anyway it's looking a lot like I'll have to detect the Win32 build of PHP at runtime, and choose the method based on that. All because PHP doesn't have an is_absolute function or anything similarly convenient. :-/ TX -- 'Every sufficiently advanced technology is indistinguishable from magic' - Arthur C Clarke 'Every sufficiently advanced magic is indistinguishable from technology' - Tom Graves Email: Trejkaz Xaoza <trejkaz@xaoza.net> Web site: http://xaoza.net/trejkaz/ Jabber ID: trejkaz@jabber.xaoza.net GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F A62C B8C7 BC8B 037E EA73

« previous php.general (#190835) next »