What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » including entire folders with php

including entire folders with php
Author: Message:
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
36 / Male / Flag
Joined: Mar 2004
RE: including entire folders with php
quote:
Originally posted by Veggie
use your head, get all the files in the dir then loop through them:

PHP 5
http://uk.php.net/manual/en/function.scandir.php
pfft directory iterators \o/

code:
foreach($dir = new DirectoryIterator("./includes") as $file){
if($dir->isFile() && strrchr($file, ".") == ".php")include($dir->getPathname());
}



This post was edited on 07-11-2006 at 12:34 PM by -dt-.
[Image: dt2.0v2.png]      Happy Birthday, WDZ
07-11-2006 12:25 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
including entire folders with php - by stoshrocket on 07-11-2006 at 12:01 PM
RE: including entire folders with php - by Veggie on 07-11-2006 at 12:09 PM
RE: including entire folders with php - by stoshrocket on 07-11-2006 at 12:22 PM
RE: including entire folders with php - by ShawnZ on 07-11-2006 at 12:23 PM
RE: including entire folders with php - by -dt- on 07-11-2006 at 12:25 PM
RE: including entire folders with php - by stoshrocket on 07-11-2006 at 01:07 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On