Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

"include" from db

 
   Database Forums (Home) -> PHP RSS
Next:  MS SQL desktop engine setup problem  
Author Message
steve




Joined: Jan 06, 2004
Posts: 660



(Msg. 1) Posted: Thu Sep 23, 2004 10:44 pm
Post subject: "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 logic would include if/then/else type logic, and would like my script to conditionally execute the logic.

 >> Stay informed about: "include" from db 
Back to top
Login to vote
Chris Hope

External


Since: Mar 26, 2004
Posts: 93



(Msg. 2) Posted: Thu Sep 23, 2004 11:26 pm
Post subject: Re: "include" from db [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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=A0complex=A0regex=A0log=
ic,=A0and=A0make=A0it
 > table driven.=A0=A0The=A0regex=A0would=A0include=A0if/then/else=A0typ=
e=A0logic,=A0and
 > would like my script to conditionally execute the logic.

<a style='text-decoration: underline;' href="http://www.php.net/eval" target="_blank">http://www.php.net/eval</a>

--=20
Chris Hope - The Electric Toolbox - <a style='text-decoration: underline;' href="http://www.electrictoolbox.com/" target="_blank">http://www.electrictoolbox.com/</a><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: "include" from db 
Back to top
Login to vote
steve




Joined: Jan 06, 2004
Posts: 660



(Msg. 3) Posted: Fri Sep 24, 2004 1:24 am
Post subject: [Login to view extended thread Info.]

Thanks, Chris. That is just what I was looking for!
 >> Stay informed about: "include" from db 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
include within include, using a relatve path - Hi, I have noticed something in PHP's include mechanism that surprised me. If you include a script that itself contains an include command using a relative path, that path is interpreted from the position of the 'outermost' script, not that of the scrip...

php include - I like to change a site from frames to a site that uses php pages with include. But the site contains subfolders and in those subfolders are images. I want to make a page, say index.php that includes a page in the subfolder: <?php..

PHP include/require bug? - Why can't I include/require a file starting with the letter 't'? <?php require "C:\t.php"; ?> [11-Dec-2005 15:55:00] PHP Warning: main(C: .php) [<a href='function.main'>function.main</a>]: failed to open stream: Inv...

include statement - Has anyone ever experienced an issue with an include statement where the included file is processed, however, no further code is processed after the included content? I have used includes for quite a while, however, this is a new one for me. Any..

Cant get include to work... - Hi This may be easy to most of you, but as a newbiw; I'm struggling. I am bringing in an include into a php file, but cant run the commands within the include. As an example, Within my php page I write: {php}include("content/myinclude.php")...
   Database Forums (Home) -> PHP All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]