Posted By

chrisdpratt on 05/04/10


Tagged

file include directory


Versions (?)

Who likes this?

10 people have marked this snippet as a favorite

bjork24
BrianCoyDesign
yves
dantreacy
joacoleo
voove
sbcjr
clac
ringo380
Some0ne


Include All PHP Files in a Directory


 / Published in: PHP
 

  1. foreach (glob("*.php") as $filename) {
  2. include($filename);
  3. }

Report this snippet  

You need to login to post a comment.