Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Is there a way to use include and glob in the same function?
Old 06-22-2006, 06:49 PM Is there a way to use include and glob in the same function?
atomicshockwave's Avatar
Experienced Talker

Posts: 38
Trades: 0
Is there a way to use include and glob in the same function?

as in, a way to include all the php files in a folder.
atomicshockwave is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-22-2006, 07:00 PM Re: Is there a way to use include and glob in the same function?
Ultra Talker

Posts: 251
Location: Belgium, Antwerp, Zoersel
Trades: 0
Of course, why wouldn't it?

Try something like:

PHP Code:
foreach(glob('*.php') as $file){
  include 
$file;

__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Orodreth is offline
Reply With Quote
View Public Profile Visit Orodreth's homepage!
 
Old 06-22-2006, 11:47 PM Re: Is there a way to use include and glob in the same function?
atomicshockwave's Avatar
Experienced Talker

Posts: 38
Trades: 0
thanks, for some reason I dident even think to write it that way, lol
o well, thats what hapens when you stare at the same page of code for 5 months straght.
atomicshockwave is offline
Reply With Quote
View Public Profile
 
Old 06-23-2006, 04:48 AM Re: Is there a way to use include and glob in the same function?
ibbo's Avatar
Super Spam Talker

Posts: 880
Location: Leeds UK
Trades: 0
"5 months straght."

Its called code blindness.

Take a month of coding.

Ibbo
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Linux user #349545 :
(GNU/Linux)iD8DBQBAzWjX+MZAIjBWXGURAmflAKCntuBbuKCWenpm XoA7LNydllVQOwCf
ibbo is offline
Reply With Quote
View Public Profile Visit ibbo's homepage!
 
Reply     « Reply to Is there a way to use include and glob in the same function?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13004 seconds with 12 queries