chris86 Posted June 6, 2006 Share Posted June 6, 2006 I want to use a PHP include for more than one external file. How do I separate the file names? Do I use a comma, or a space? Is the code below correct? include("domains.php" "rotate.php"); Quote Link to comment https://forums.phpfreaks.com/topic/11329-include-multiple-files/ Share on other sites More sharing options...
ober Posted June 6, 2006 Share Posted June 6, 2006 You can't do that for more than one file.include("domains.php");include("rotate.php");include("other.php");etc. Quote Link to comment https://forums.phpfreaks.com/topic/11329-include-multiple-files/#findComment-42429 Share on other sites More sharing options...
chris86 Posted June 6, 2006 Author Share Posted June 6, 2006 [!--quoteo(post=380619:date=Jun 6 2006, 10:52 AM:name=ober)--][div class=\'quotetop\']QUOTE(ober @ Jun 6 2006, 10:52 AM) [snapback]380619[/snapback][/div][div class=\'quotemain\'][!--quotec--]You can't do that for more than one file.include("domains.php");include("rotate.php");include("other.php");etc.[/quote]Ok, got it. One include file per line. Thanks ober. Quote Link to comment https://forums.phpfreaks.com/topic/11329-include-multiple-files/#findComment-42436 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.