Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default "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.

    --
    [url]http://www.dbForumz.com/[/url] This article was posted by author's request
    Articles individually checked for conformance to usenet standards
    Topic URL: [url]http://www.dbForumz.com/PHP-quot-include-quot-db-ftopict153128.html[/url]
    Visit Topic URL to contact author (reg. req'd). Report abuse: [url]http://www.dbForumz.com/eform.php?p=512699[/url]
    steve Guest

  2. Similar Questions and Discussions

    1. include" file" vs. "virtual" in .asp
      what is the diff between "virtual" and "file" when using include script? and or should i be using "asp include" if an asp page vs. "script include"?...
    2. #24053 [Com]: include issues spurious "stream" warning that clutters up the page ...
      ID: 24053 Comment by: ngaugler at ngworld dot net Reported By: jphey at netdoor dot com Status: Bogus Bug...
    3. #24053 [Asn->Fbk]: include issues spurious "stream" warning that clutters up the page ...
      ID: 24053 Updated by: iliaa@php.net Reported By: jphey at netdoor dot com -Status: Assigned +Status: ...
    4. #24053 [Asn]: include issues spurious "stream" warning that clutters up the page ...
      ID: 24053 Updated by: wez@php.net Reported By: jphey at netdoor dot com Status: Assigned Bug Type: ...
    5. #24053 [Bgs->Asn]: include issues spurious "stream" warning that clutters up the page ...
      ID: 24053 Updated by: wez@php.net Reported By: jphey at netdoor dot com -Status: Bogus +Status: ...
  3. #2

    Default Re: "include" from db

    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.
    [url]http://www.php.net/eval[/url]

    --
    Chris Hope - The Electric Toolbox - [url]http://www.electrictoolbox.com/[/url]
    Chris Hope Guest

  4. #3

    Default Re: Re: "include" from db

    "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.
    >
    > [url]http://www.php.net/eval[/url]
    >
    > --=20
    > Chris Hope - The Electric Toolbox -
    > [url]http://www.electrictoolbox.com/[/url]
    Thanks, Chris. That is just what I was looking for!

    --
    [url]http://www.dbForumz.com/[/url] This article was posted by author's request
    Articles individually checked for conformance to usenet standards
    Topic URL: [url]http://www.dbForumz.com/PHP-quot-include-quot-db-ftopict153128.html[/url]
    Visit Topic URL to contact author (reg. req'd). Report abuse: [url]http://www.dbForumz.com/eform.php?p=512804[/url]
    steve Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139