Search the Community
Showing results for tags 'ereg_replace'.
-
I am new to PHP, ereg_replace is deprecated so need to convert ereg_replace to preg_replace, I can't figure out how to put "delimiters and escape character" on $TEST_FILE below, can someone help me on this. function KernelBase(){ $i=0; $TEST_FILE="fdKernel/Init.php"; $TEST=$TEST_FILE; while(!file_exists($TEST)){ $TEST="../".$TEST; if($i>15) break; $i++; } return trim(ereg_replace($TEST_FILE,NULL,$TEST))."fdKernel/"; }
-
Hello, I use Mafia Raven Scripts, but our host made some changes to the PHP version and it messed up one of our scripts for it because its trying to use ereg, ereg_replace, etc. I have read on the PHP website trying to find out how to fix this, but I cannot seem to grasp it. Can you please provide some help. security.php