Gomesh Posted November 16, 2009 Share Posted November 16, 2009 Hi Friends, I am new in php , therefore i have some confusion if u help me its good for me. Please tell me the difference b/w required_once , include , include_once. where i use required_once , where include , where include_once. Thanks Gomesh Link to comment https://forums.phpfreaks.com/topic/181701-solved-some-questions/ Share on other sites More sharing options...
Bendude14 Posted November 16, 2009 Share Posted November 16, 2009 if include_once and include fail to "include" the file then the page continues to render where as if require or require_once fail the whole page stops rendering. The difference between require and include and require_once and include_once is that using the "_once" functions means an extra look at the stack to ensure that these files have not already be included and is therefore slightly slower. require_once is often helpful inside an __autoload function used to include classes when designing an OO php system. Link to comment https://forums.phpfreaks.com/topic/181701-solved-some-questions/#findComment-958354 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.