Gossamer Forum
Home : Products : Gossamer Links : PHP Front End :

Re: [brewt] Error with PHP includes

Quote Reply
Re: [brewt] Error with PHP includes In reply to
Doing a little digging, I've found out what the problem is. PHP on Windows uses a different delimiter for the include_path than PHP on *nixes (what a pain!). To fix this, try this:
Code:
$_include_path = ini_get('include_path');
$_delimiter = (strtolower(substr(php_uname(), 0, 7)) == 'windows') ? ';' : ':';
ini_set('include_path', "$admin_root_path/templates/${template_set}_php/local$_delimiter$admin_root_path/templates/${template_set}_php");
This should be in Links.inc.php aroun line 211. It currently should be something like:
Code:
$_include_path = ini_get('include_path');
ini_set('include_path', "$admin_root_path/templates/${template_set}_php/local:$admin_root_path/templates/${template_set}_php:.");
Take out those two lines, and replace it with the three lines above.

If you don't feel comfortable doing this, or need any other help, email me (see my profile).


Adrian
Subject Author Views Date
Thread Error with PHP includes servicepals 11479 Dec 8, 2001, 2:56 PM
Thread Re: [servicepals] Error with PHP includes
Michael_Bray 11346 Dec 8, 2001, 3:13 PM
Thread Re: [Michael_Bray] Error with PHP includes
servicepals 11335 Dec 9, 2001, 2:53 AM
Thread Re: [servicepals] Error with PHP includes
Michael_Bray 11322 Dec 9, 2001, 3:45 AM
Post Re: [Michael_Bray] Error with PHP includes
servicepals 11333 Dec 9, 2001, 9:16 AM
Thread Re: [servicepals] Error with PHP includes
brewt 11329 Dec 9, 2001, 2:07 PM
Thread Re: [brewt] Error with PHP includes
brewt 11312 Dec 9, 2001, 2:34 PM
Thread Re: [brewt] Error with PHP includes
servicepals 11318 Dec 10, 2001, 3:09 AM
Thread Re: [servicepals] Error with PHP includes
brewt 11287 Dec 10, 2001, 11:51 AM
Post Re: [brewt] Error with PHP includes
servicepals 11236 Dec 15, 2001, 8:21 AM