Jump to content

Archived

This topic is now archived and is closed to further replies.

chris86

Include multiple files

Recommended Posts

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");

Share this post


Link to post
Share on other sites
You can't do that for more than one file.

include("domains.php");
include("rotate.php");
include("other.php");
etc.

Share this post


Link to post
Share on other sites
[!--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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.