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
Share on other sites

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
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

Link to comment
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.