View Single Post
Old 05-29-2008, 05:31 PM   #1 (permalink)
delayedinsanity
is cute and cuddly
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
delayedinsanity is on a distinguished road
Default Here's a stupid one...

It's amateur question hour... I just tried to upload one of my projects to a new subdomain on my site. To my wonderful surprise, it turns out that my host has PHP installed as CGI instead of an Apache module (why? because they were all abused as children and wish to take it out on their customers, and I'm locked in to them for now...) so I can't use php_ini in my .htaccess file without causing an internal server error. Grrr. So I was going to use ini_set() to add paths for both the host (linux) and my local server (windows), however, we have a small problem.

PHP Code:
ini_set('include_path''.:/data/16/1/7/24/1496513/user/1609716/htdocs/tuatara/bin/lib/');
ini_set('include_path''.;C:\\Users\\m\\Documents\\web sites\\htdocs-tuatara\\bin\\lib\\'); 
The second causes a problem because it's reading the semi-colon as an end of line delimiter, even though it's in quotes. I can't use a colon with windows paths, of course. I've solved this problem by just reverting to my old method of

PHP Code:
include($_SERVER['DOCUMENT_ROOT'].'/bin/lib/files...'); 
but I'm curious as to how I would solve this problem in the future if I need to set multiple include paths via ini_set() on a windows box?
-m
delayedinsanity is offline  
Reply With Quote