Hi,
I have a Content management system that we've put together using php. In this there
is a php search facility. The visitor types a "word" in to the search and the results are returned with a description directly from the database it is stored in.
When a user creates a new page via the content management system, the information is stored directly into the database. We needed to tell the system when to translate php commands, so that the user of the system can insert php commands into the editor themselves. In order to do this, we use [php_start] and [php_end] to tell the system that everything between this is php.
However, as our search finds text that matches in the database, all of our scripts are coming through also.
Like Such,
Opinions forum
[php_start] require "/home/www/sites/web/_restrict.php"; [php_end]
I was informed that Ereg replace could help with this, but no matter what i try it seems to fail.
Can anyone can tell me what code I would need to tell it to ignore or replace anything after [ and before ] of the two commands.
Regards
Rufo