Hi,
I was hoping someone could help me to understand chdir properly.
I need to use chdir to require a script.
By chdir'ing I am able to require the script properly.
By chdir'ing one of the other scripts on the same page breaks.
For example:
If I have a php script includes others. Where is that script executed ?
If I have a php script with a require that uses chdir. Where is that script executed ?
If I have a php script with 2 requires that uses a chdir for one of them where is the script initially executed ? and would chdiring back to this location allow the other script to run ?
Confused ? Me too!
Thanks
I was hoping someone could help me to understand chdir properly.
I need to use chdir to require a script.
By chdir'ing I am able to require the script properly.
By chdir'ing one of the other scripts on the same page breaks.
For example:
If I have a php script includes others. Where is that script executed ?
If I have a php script with a require that uses chdir. Where is that script executed ?
If I have a php script with 2 requires that uses a chdir for one of them where is the script initially executed ? and would chdiring back to this location allow the other script to run ?
Confused ? Me too!
Thanks
Comment