cssfreakie Posted March 1, 2011 Share Posted March 1, 2011 Hi all, Something that pretty much always seems to bother me when i write something for someone else is that the include path's for some reason are screwed up. Now i thought let's look in phpinfo to see what the path is: So i get the following: Local value: .:/usr/lib/php:/usr/local/lib/php:/home/godzilla4361/php Master value: .:/usr/lib/php:/usr/local/lib/php Now which one is used for what? I just can't find a way to create a way to easily transport scripts from server to server, because i always have to manually adjust the path for inclusion otherwise i get those warning: failed to open stream etc. Anyone with tips and or advice and maybe even knows what to use those local and master values for? Link to comment https://forums.phpfreaks.com/topic/229215-master-and-local-values-phpinfo/ Share on other sites More sharing options...
trq Posted March 1, 2011 Share Posted March 1, 2011 Now which one is used for what? What exactly do you mean? Anyone with tips and or advice and maybe even knows what to use those local and master values for? Local and master? Again, what do you mean? Link to comment https://forums.phpfreaks.com/topic/229215-master-and-local-values-phpinfo/#findComment-1181144 Share on other sites More sharing options...
cssfreakie Posted March 1, 2011 Author Share Posted March 1, 2011 hmm, I don't know what i mean really because i have know idea what the difference between local value and master value is. I thought it would be use full to know because phpinfo tell this is the filepath. Better put this topic on solved not to confuse myself and others Link to comment https://forums.phpfreaks.com/topic/229215-master-and-local-values-phpinfo/#findComment-1181364 Share on other sites More sharing options...
AbraCadaver Posted March 1, 2011 Share Posted March 1, 2011 The master value is set in php.ini. This can be overridden in .htaccess or in the script and that is the local value. For include path you can use ini_set('include_path', 'whatever') or set_include_path(). Link to comment https://forums.phpfreaks.com/topic/229215-master-and-local-values-phpinfo/#findComment-1181372 Share on other sites More sharing options...
cssfreakie Posted March 1, 2011 Author Share Posted March 1, 2011 Cool! thanks abracadaver, Would that work faster than using the dirname((__FILE__)); in the index.php to include stuff? Or doesn't it matter and is that compairing apples with oranges? Link to comment https://forums.phpfreaks.com/topic/229215-master-and-local-values-phpinfo/#findComment-1181386 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.