"include" from db

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • steve

    "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
  • Chris Hope

    #2
    Re: "include&q uot; from db

    steve wrote:
    [color=blue]
    > 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.[/color]



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

    Comment

    • steve

      #3
      Re: Re: "include&q uot; from db

      "Chris Hope" wrote:[color=blue]
      > steve wrote:
      >[color=green]
      > > I need to do conditional script "include", but like to pull[/color]
      > the code[color=green]
      > > from db instead of a file.=A0=A0How= A0do=A0I=A0do=A 0that?
      > >=20
      > >[/color]
      > Reason:=A0=A0I= A0like=A0to=A0i mplement=A0some =A0complex=A0re ge
      > x=A0log=
      > ic,=A0and=A0mak e=A0it[color=green]
      > > table[/color]
      > driven.=A0=A0Th e=A0regex=A0wou ld=A0include=A0 if/then/else=A0ty
      > p=
      > e=A0logic,=A0an d[color=green]
      > > would like my script to conditionally execute the logic.[/color]
      >
      > http://www.php.net/eval
      >
      > --=20
      > Chris Hope - The Electric Toolbox -
      > http://www.electrictoolbox.com/[/color]

      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

      Comment

      Working...