PCRE and preg_match problem

Post your questions about Web Server usage and Apache + PHP + MySQL/SQLite web applications.
Post Reply
Wilq1977
First post
Posts: 1
Joined: Mon Jan 14, 2019 11:57 pm

PCRE and preg_match problem

Post by Wilq1977 » Mon Aug 26, 2019 3:22 am

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 :)

Post Reply

Return to “Web Server & Applications (Apache + PHP + MySQL / SQLite)”