model view controller - Including an array of files in PHP -


What am I trying to do, in which the main PHP file contains all the php files in the given directory, I load them in an array like the globe ()

:

  // Get all the files $ files = glob (' *. Php ');   

But when I try to include ($ files) in I'm having an error saying that it does not like the array, Should I Use a Novel Statement? Or is there a better way to do this? $ Filename as

  foreach (globe ("* .php") {/ / Do stuff}    

Comments

Popular posts from this blog

android - How can I execute default sms app? -

jquery .css('text-decoration') doesn't work from parents -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -