Posted by Hendri Kurniawan on 05/02/07 23:25
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.php');
> include('Mail\mime.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_SEPARATOR
Hendri Kurniawan
Navigation:
[Reply to this message]
|