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


Ahhhh, methinks I have a competitor for a FileSystem Manager :) Perhaps I misunderstand your problem, but this works fine for me (WinXP) because realpath
[quote]Returns canonicalized absolute pathname[/quote]:


<?php

// we know __FILE__ is an absolute path
$file = __FILE__;
echo realpath(__FILE__) == $file ? 'The same path' : 'Not the same path';

?>

http://www.php.net/realpath

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to