the_oliver Posted April 29, 2007 Share Posted April 29, 2007 Hello, I have a site with a long list of files that most pages include. As a result i have a long list at the start of each scrip! If i had one scrip, which had nothing but include""; for all of this, and from then on just included that single page would i have any problems? Would i have to golbal or anything? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/49209-including-files-with-includes/ Share on other sites More sharing options...
Lumio Posted April 29, 2007 Share Posted April 29, 2007 try When you want to use variables in functions wich are not defined in the function... use global Quote Link to comment https://forums.phpfreaks.com/topic/49209-including-files-with-includes/#findComment-241114 Share on other sites More sharing options...
per1os Posted April 29, 2007 Share Posted April 29, 2007 You should not have any problems. The best way to make sure is to test like Lumio said. Create a few test includes that print out a string, and include this into a file and include that file into your page. See what happens. Quote Link to comment https://forums.phpfreaks.com/topic/49209-including-files-with-includes/#findComment-241117 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.