How to make own simple, fast and secure PHP MySQL template without eval() for MySQL record:
+--------------------------------------------------------------+
| id | content |
|--------------------------------------------------------------|
| 12 | Today is {date}<br />Current time {include 'time.php'} |
+--------------------------------------------------------------+
{date} must return echo date('l'); and time.php content is <?php echo date('h:i A'); ?>
Expected result would be:
Today is Thursday
Current time 23:17 PM
It’s possible trough
preg_replace. Example forinclude:date.php:
will return:
Today is 20th of July.Does anyone knows some better way (secure, speed performance) to do it without
/eeval?