Does the pear package sub-include use a backslash on linux?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • cybervigilante

    Does the pear package sub-include use a backslash on linux?

    I was trying the pear package on my local winmachine and noticed that
    one of the includes has a backslash

    <?php

    include('Mail.p hp');
    include('Mail\m ime.php');

    is this a path backslash? i.e. if I access pair on my linux server, do
    I have to put a forward slash in between Mail and mime? such as Mail/
    mime.php Or does the slash have another meaning? I haven't found a
    lot of pear documentation and the one I am reading has that slash,
    which I'm not sure is for any host or just for win.

    Jim

  • Hendri Kurniawan

    #2
    Re: Does the pear package sub-include use a backslash on linux?

    cybervigilante wrote:
    I was trying the pear package on my local winmachine and noticed that
    one of the includes has a backslash
    >
    <?php
    >
    include('Mail.p hp');
    include('Mail\m ime.php');
    >
    is this a path backslash? i.e. if I access pair on my linux server, do
    I have to put a forward slash in between Mail and mime? such as Mail/
    mime.php Or does the slash have another meaning? I haven't found a
    lot of pear documentation and the one I am reading has that slash,
    which I'm not sure is for any host or just for win.
    >
    Jim
    >
    In my experience, PHP took care of that.
    But you can use a constant specified by PHP: DIRECTORY_SEPAR ATOR

    Hendri Kurniawan

    Comment

    Working...