Re: storing functions in a database

From: Date: Mon, 26 Jun 2000 19:25:46 +0000
Subject: Re: storing functions in a database
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-634@lists.php.net to get a copy of this message
Datahntr wrote: > > I would like to store my functions in a database instead of a include > > file, is that possible? > > Yes. Why, who knows. But yes. How would I go about doing this? Using the eval? Dumping it to a temporary file and include it like you mentioned below? I do have a reason to store the functions in a database instead of a file. > > Also if I were to store some php code in a database field, could I > > retrieve it and have it parsed through php and then spit out to the user > > instead of just having it spit out directly from the database to the > > user? > > Look at "eval". I don't know how well suited it is to being used with large > chunks of code, however. You could just dump it to a temporary file and > include it, then delete the file afterward. Would this be a ok thing to do? Or do you think that the server performance would be impacted greatly? Thanks for all the help. __ Kris.

« previous php.db (#634) next »