0
我在我的程序中使用了preg_match函數。該代碼是這樣的如何解決Preg_match警告?
if (!$this->config_allow_src_above_docroot && !preg_match('^'.preg_quote(str_replace(DIRECTORY_SEPARATOR, '/', realpath($this->config_document_root))), $AbsoluteFilename))
但運行應用程序它顯示了這樣的警告
Warning: preg_match() [function.preg-match]: No ending delimiter '^'
你能不能幫我請..