By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,349 Members | 1,353 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,349 IT Pros & Developers. It's quick & easy.

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

P: n/a
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

May 2 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
May 2 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.