Michael Ochs wrote: > Hi, > maybe you could try it with regular expressions! "[A-Z]:\\" or better > "[C-Z]:\\" because A and B is used just for floppy drives... > Take a look at www.php.net/preg_match/
I'm not sure if you noticed, but I said I wanted it to be portable. Sure, "([A-Za-z]:)?[/\\]" would work to some extent, but would it work perfectly? As far as I can tell, the path "C:/" is _relative_ on Linux and BSD. Am I wrong? 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 <[EMAIL PROTECTED]> Web site: http://xaoza.net/trejkaz/ Jabber ID: [EMAIL PROTECTED] GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F A62C B8C7 BC8B 037E EA73 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php