I'm relatively ignorant about Apache, knowing just enough to get XAMPP to work -- so please pardon my awkwardness framing this question.
I'm trying to look for a way to define a parameter for use in <IfDefine> conditionals in the .htaccess files of the sites I develop.
My goal is to set different php include paths for different platforms, since I work in both Windows XP and Mac OSX. And of course, there has to be an include path for Unix, too, at the remote host for these sites.
Here's what I'm trying to get to work in an .htaccess file (www is my web folder, instead of xampp/htdocs):
- Code: Select all
# Remote host include path (default):
php_value include_path .:/usr/www/users/ejs/includes
# Windows XP include path:
php_value include_path .;C:\www\includes
# Mac OS X include path:
php_value include_path .:/www/includes
I should note that the directory structure (aside from Windows and Mac drive conventions) is the same in both the PC and Mac environments. This facilitates syncing of the files (PC is a desktop machine; Mac is a laptop for working out of the office).
I was able to find the right line for defining a parameter in the apachectl file on my Mac installation of XAMPP. I added "-DMacOSX" to it and it works just right. But I can't for the life of me figure out where I would add "-DWindowsXP". Nothing I've tried has worked.
Any ideas on how to pass a parameter definition when starting Apache on Windows?