On Mon, Sep 29, 2008 at 11:48 AM, Kris Wallsmith
<[EMAIL PROTECTED]> wrote:
> Hi James,
> Yes, the DIRECTORY_SEPARATOR constant exists for the purpose of file system
> compatibility, but it's use is only warranted in certain circumstances. For
> example, the following code will work in both Unix and Windows
> environments...
> <?php include dirname(__FILE__).'/some/other/file.php'; ?>
> While the following code is only compatible with Unix...
> <?php if ('/' == dirname(__FILE__)) echo 'foo'; ?>
Oops, good point, there is still a use for DIRECTORY_SEPARATOR in the
second case which should not be forgotten.
--
Tom Boutell
www.punkave.com
www.boutell.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---