<?php
function recherche_php($t) {
$ScriptDir = './my_script_php/';
$SearchedStrUrl = "/<php_cache_(([^>]+?)([|]{1}((\w)+=(.)+){1}([|]*(\w)+=(.)+)*)*)>/i";
// on remplace les <php_cache_XX>
if (preg_match_all($SearchedStrUrl,$t,$mymatches)) {
for ($i=0;$i< sizeof ($mymatches[2]);$i++) {
$tag = my_include($ScriptDir.$mymatches[2][$i], $mymatches[3][$i]);
$t = str_replace($mymatches[0][$i],$tag,$t);
}
}
return $t;
}
?>