By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,812 Members | 1,288 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,812 IT Pros & Developers. It's quick & easy.

"include" from db

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
"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.