467,858 Members | 1,489 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,858 developers. It's quick & easy.

"include" from db

Hi,
I need to do conditional script "include", but like to pull the code
from db instead of a file. How do I do that?

Reason: I like to implement some complex regex logic, and make it
table driven. The regex would include if/then/else type logic, and
would like my script to conditionally execute the logic.

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/PHP-quot-inc...ict153128.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=512699
Jul 17 '05 #1
  • viewed: 2544
Share:
2 Replies
steve wrote:
I need to do conditional script "include", but like to pull the code
from db instead of a file.**How*do*I*do*that?

Reason:**I*like*to*implement*some*complex*regex*lo gic,*and*make*it
table driven.**The*regex*would*include*if/then/else*type*logic,*and
would like my script to conditionally execute the logic.


http://www.php.net/eval

--
Chris Hope - The Electric Toolbox - http://www.electrictoolbox.com/
Jul 17 '05 #2
"Chris Hope" wrote:
steve wrote:
I need to do conditional script "include", but like to pull

the code
from db instead of a file.=A0=A0How=A0do=A0I=A0do=A0that?
=20

Reason:=A0=A0I=A0like=A0to=A0implement=A0some=A0co mplex=A0rege
x=A0log=
ic,=A0and=A0make=A0it
table

driven.=A0=A0The=A0regex=A0would=A0include=A0if/then/else=A0ty
p=
e=A0logic,=A0and
would like my script to conditionally execute the logic.


http://www.php.net/eval

--=20
Chris Hope - The Electric Toolbox -
http://www.electrictoolbox.com/


Thanks, Chris. That is just what I was looking for!

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/PHP-quot-inc...ict153128.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=512804
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

43 posts views Thread by steve | last post: by
5 posts views Thread by Danny Anderson | last post: by
6 posts views Thread by wukexin | last post: by
reply views Thread by jack112 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.