Including directory and all files in it
Posted: Mon Sep 03, 2007 1:13 am
I want to include all the files in a particular directory
I know i can write and so on for each file.
But is there any way i can add all the files inside gb directory at once?
something like include the directory and all it's files.
I know i can write
Code: Select all
include("$_SERVER[DOCUMENT_ROOT]/gb/index.php");
include("$_SERVER[DOCUMENT_ROOT]/gb/post.php");But is there any way i can add all the files inside gb directory at once?
something like include the directory and all it's files.