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 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 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. Link to comment https://forums.phpfreaks.com/topic/49209-including-files-with-includes/#findComment-241117 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.