Hi
I really a problem with this and would be really gratfule if somebody could help me
I have an old function that has worked fine since PHP3 - 5.xx
I find now with newly installed 7.2 it no longer works
the part in question
////[php]$body=preg_replace("/[INCLUDE]([a-z0-9;/?:@=&$-_.+!*’(),]+?)[/INCLUDE]/e",“page_inc(’\1’)”, $body);[/php]
It esentually finds text in a page($body) that contains for example [INCLUDE]SpecialMenu[/INCLUDE] and runs a function page_inc(\1) which in turn looks up the text(SpecialMenu) from a database and inserts the special menu into the page.
I think the start of my problem is the e directive and the function needs to be replaced with preg_replace_callout(…). however, as much as I try and no matter what combinations I am trying I am just not getting it.
Can anybody out there that understands the preg_replace_callout function please convert my function to a working preg_replace_callout function. I have read the php manual pages over and over but I am missing something lol. I created this function in about 2005 I think.
Cheers
Thanks in Advance
Neil