Re: storing functions in a database

From: Date: Mon, 26 Jun 2000 20:18:57 +0000
Subject: Re: storing functions in a database
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-3193@lists.php.net to get a copy of this message
On Mon, 26 Jun 2000, Kris Mach wrote: > I would like to store my functions in a database instead of a include > file, is that possible? > yes eval() > 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? yes. load code to a string from the database. run eval(string) > > One more question, if I were to use a java servlet and have it spit out > php code, would it be possible to have the php code than be parsed by > php instead of once again being spit out to the user? > not sure. there are some xml features in php3 now, however, it gets complicated. The servlets usually send the code directly to the browser. It would be easier to embed javascript in the code and have the browser evaluate it. put it in comments so the browser does not display it: <script> <!--- comment is ignored java code ----!> </script> > Thanks! I have been working on this, and this stumped me for the past > couple of days. > > __ > Kris. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#3193) next »