Hi,
My firm develops accounting application that is powered by PHP. Some modules require writing to particular folders on the filesystem. Does setting BASEDIR in a specific script using ini_set() during runtime apply to all scripts globally or only the specific php script running?
Regards,
Rhossis
3 replies to this topic
#1
Posted 10 January 2011 - 06:10 AM
|
|
|
#2
Posted 10 January 2011 - 09:07 AM
Sorry I meant open_basedir :)
#3
Posted 10 January 2011 - 05:16 PM
Hi, Anything set in ini_set() will persist (globally or otherwise) only until the end of execution of the script, and will return to default value. I would recommend you modify this through php.ini to apply it globally persistant.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
#4
Posted 11 January 2011 - 04:57 AM
Thanks. I see you point given that it may affect the global settings during the period when the script is running.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









