REGISTER
|
Search Tycoon Talk
|
Freelancer.com
|
Members
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.
Register Here
Forum Rules
PHP Forum
You are currently viewing our PHP Forum as a guest. Please
register
to participate.
Login
Remember Me?
Login via Freelancer.com
Tycoon Talk
>
Web Development and Programming Support
>
PHP Forum
>
Is there a way to use include and glob in the same function?
Link Back
Thread Tools
Search this Thread
Is there a way to use include and glob in the same function?
06-22-2006, 06:49 PM
#
1
(
permalink
)
Is there a way to use include and glob in the same function?
atomicshockwave
Experienced Talker
Posts: 38
Trades:
0
Talkupation:
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.
Register
now for full access!
06-22-2006, 07:00 PM
#
2
(
permalink
)
Re: Is there a way to use include and glob in the same function?
Orodreth
Ultra Talker
Posts: 251
Location: Belgium, Antwerp, Zoersel
Trades:
0
Talkupation:
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
06-22-2006, 11:47 PM
#
3
(
permalink
)
Re: Is there a way to use include and glob in the same function?
atomicshockwave
Experienced Talker
Posts: 38
Trades:
0
Talkupation:
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.
06-23-2006, 04:48 AM
#
4
(
permalink
)
Re: Is there a way to use include and glob in the same function?
ibbo
Super Spam Talker
Posts: 880
Location: Leeds UK
Trades:
0
Talkupation:
"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
« Reply to
Is there a way to use include and glob in the same function?
Previous Thread
|
Next Thread
Tycoon Talk
>
Web Development and Programming Support
>
PHP Forum
>
Is there a way to use include and glob in the same function?
Thread Tools
Search this Thread
Show Printable Version
Email this Page
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
Forum Rules
Feeds:
RSS
JS
XML
Feeds for this forum:
RSS
JS
XML
LinkBack
LinkBack URL
About LinkBacks
Bookmark & Share
Digg this Thread!
Add Thread to del.icio.us
Bookmark in Technorati
Tweet this thread
Page generated in
0.13004
seconds with
12
queries