I am using preg_match function in my program. The code is like this
if (!$this->config_allow_src_above_docroot && !preg_match('^'.preg_quote(str_replace(DIRECTORY_SEPARATOR, '/', realpath($this->config_document_root))), $AbsoluteFilename))
But run the application it shows the warning like this
Warning: preg_match() [function.preg-match]: No ending delimiter '^'
Can you help me please..