RE: [PHP] Making PHP in real time ... !?
| From: | James Moore | Date: | Fri, 01 Sep 2000 18:05:50 +0000 |
| Subject: | RE: [PHP] Making PHP in real time ... !? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-14852@lists.php.net to get a copy of this message | ||
http://www.php.net/manual/function.eval.php
this does what you want
James
> -----Original Message-----
> From: Hervé Piedvache [mailto:herve@elma.fr]
> Sent: 01 September 2000 18:54
> To: php-general@lists.php.net
> Subject: [PHP] Making PHP in real time ... !?
>
>
> Hi,
>
> I would like to make some php code in real time, or read it from a
> database ...
>
> I would like to know if somebody is able to tell me how, in a php code,
> to include datas (also in PHP code) from a database and to make this
> code immediatly interpreted by PHP ...
>
> Example :
> <?
> echo "my HTML Page<BR>";
>
> // Access to the database to get the data needed (oracle in our case)
> $mydata=('select phpcode from mytable where page=1');
>
> // Then what can I do here to make interpreted my PHP code which is
> inside $mydata ??
>
> ?>
>
> Thanks for your help !
>
> regards,
> --
> Hervé
>
> --
> 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
>