jas4 Posted September 5, 2007 Share Posted September 5, 2007 Hi looked for a seperate PEAR board but didnt see any so not sure if im posting this in the right place: I've installed pear onto my windows (not my choice), installed all the packages that I need etc, the problem is that i dont have access to change the include_path so in every script I need to include something like this (i think): <?php ini_set('include_path', '~/pear/lib' . PATH_SEPARATOR . ini_get('include_path')); // From PHP 4.3.0 onward, you can use the following, // which especially useful on shared hosts: set_include_path('~/pear/lib' . PATH_SEPARATOR . get_include_path()); ?> so i tried both parts of this code but it doesnt seem to work, has anyone else had any of these problems and solved them succesfully? cheers Quote Link to comment https://forums.phpfreaks.com/topic/68093-solved-pear-include/ Share on other sites More sharing options...
jas4 Posted September 5, 2007 Author Share Posted September 5, 2007 still not sure if this is the right place, but i've managed to solve my problem (eventually) $path = "C:\path_to"; set_include_path('~/pear/lib' . PATH_SEPARATOR . $path); Its basically what I already had but I just needed to find the path that I needed to include. For anyone needing to install pear on a shared windows host, and you dont have access to directly change the include_path, then this snipet of code needs to be used Quote Link to comment https://forums.phpfreaks.com/topic/68093-solved-pear-include/#findComment-342312 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.