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"); 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. 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. Link to comment https://forums.phpfreaks.com/topic/11329-include-multiple-files/#findComment-42436 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.