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 ? Link to comment https://forums.phpfreaks.com/topic/186774-resetting-require_once/ 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. Link to comment https://forums.phpfreaks.com/topic/186774-resetting-require_once/#findComment-986324 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? Link to comment https://forums.phpfreaks.com/topic/186774-resetting-require_once/#findComment-986342 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.