ram4nd Posted January 9, 2009 Share Posted January 9, 2009 If I have 3 folders system, control and view. Control and view folders are in system folder. How can I include stuff from control folder to view folder? Quote Link to comment https://forums.phpfreaks.com/topic/140117-include/ Share on other sites More sharing options...
RussellReal Posted January 9, 2009 Share Posted January 9, 2009 usually with include you usually include the things you need, rather than EVERYTHING when sum1 clicks an inbound link to your website.. the page refreshs and php restarts for that user, meaning all data beforehand was destroyed so.. include the files you need from the systems folder.. into the current php script.. than include the ones you need in the next one aswell Quote Link to comment https://forums.phpfreaks.com/topic/140117-include/#findComment-733085 Share on other sites More sharing options...
ram4nd Posted January 9, 2009 Author Share Posted January 9, 2009 Ok, thank you. Quote Link to comment https://forums.phpfreaks.com/topic/140117-include/#findComment-733089 Share on other sites More sharing options...
chronister Posted January 9, 2009 Share Posted January 9, 2009 A tip when using includes.... make the path like this.... <?php include($_SERVER['DOCUMENT_ROOT'].'/path/to/file.php'); ?> It will save headaches in dealing with paths. nate Quote Link to comment https://forums.phpfreaks.com/topic/140117-include/#findComment-733104 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.