Page 1 of 1

PCRE and preg_match problem

Posted: Mon Aug 26, 2019 3:22 am
by Wilq1977
Hi, everyone
QNAP TS-453Be 4.41.1031 all app's updated.

I wrote php script with reg_exp. but i have an error like: Uncaught Error: Call to undefined function reg_match() in /share/CACHEDEV4_DATA/Web/semprus_gsm/action.php:42 Stack trace: #0 {main} thrown in /share/CACHEDEV4_DATA/Web/semprus_gsm/action.php on line 42
line 42 looks like $parseError = reg_match('/^[0-9]*/', $_POST("containerID"));
i think problem is in php module called pcre2, but how to intall that module in qnap? Thru terminal i know but how step by step ?

I hope U can help me with that....

P.S. Sorry, my english is poor like 3rd word countries :)