I'm trying to set up my first site with a host that uses Windows (client's request) - all my past experience is with Linux/Unix hosting.
My scripts use a lot of included files, and when including files I use pre-defined path prefixes that I can change from host to host. For example, on my local OS X machine I might use:
define('INCLUDE_PATH', '/Library/WebServer/Documents/project/inc/');
define('ADMIN_INCLUDE_PATH', '/Library/WebServer/Documents/project/admin/inc/');
and on my development server it might be:
define('INCLUDE_PATH', '/usr/home/username/public_html/clients/project/inc/');
define('ADMIN_INCLUDE_PATH', '/usr/home/username/public_html/clients/project/admin/inc/');
And to include something I might use:
require_once(ADMIN_INCLUDE_PATH . 'classes/myclass.class.php');
However, on this Windows server they're telling me the path to the www root is:
c:\domains\project.org\www
And when I try to define my prefixes:
define('INCLUDE_PATH', 'c:\domains\project.org\www\inc/');
define('ADMIN_INCLUDE_PATH', 'c:\domains\project.org\www\admin\inc/');
it doesn't work - I'm assuming because of the combination of forward and backward slashes. (I can't figure out how to end the prefix with a backslash because it escapes the final quotation mark - and anyway, it still gets concatenated with other forward slashes in the end)
Is there some way on Windows to get a forward-slash absolute path? How else do people deal with this - particularly as regards going back and forth between Linux (dev) and Windows (live)?
Thanks!