Jump to content

Master and local values phpinfo


cssfreakie

Recommended Posts

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

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

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?

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.