WarKirby Posted December 31, 2009 Share Posted December 31, 2009 As far as I understand, require_once will load a file once on initialisation, and never again. Is there some way to force a reload of a required file? Specifically in the case of updating that file, I want my php to load the new version of it. What can/should I do ? Quote Link to comment Share on other sites More sharing options...
corbin Posted December 31, 2009 Share Posted December 31, 2009 It doesn't work like that. It only requires it once during the execution of that PHP run. Any other sequential php.exe instances running will re-require it. Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted December 31, 2009 Share Posted December 31, 2009 Maybe your looking for: require or include instead? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.