I'm new to PHP and trying to open the CodeIgniter 4 welcome page by using localhost (I don't have any server programs like XAMPP since it's a company computer and PHP works fine with its built-in server.)
When I try to run the command: php spark serve
on the terminal, it gives an error like this:
Uncaught Error: Call to undefined function CodeIgniter\CLI\mb_strpos() in C:\Users\50290536\Desktop\php-test\system\CLI\CLI.php:776
I enabled the necessary extensions in the php.ini
file and the file: php_mbstring.dll
is available in the directory php/ext
.
I also tried to run the command: php spark
to see if spark
works fine but in that case, I got the following error:
The framework needs the following extension(s) installed and loaded: curl, intl, mbstring at SYSTEMPATH\Codeigniter.php:224
All these extensions are enabled in the php.ini
file and their respective .dll
files are available in the directory php/ext
.
Details:
PHP version: v8.2
CodeIgniter 4 framework version: v4.2.10
Currently enabled PHP modules after running the command: php -m
bcmath
calendar
Core
ctype
date
dom
filter
hash
iconv
json
libxml
mysqlnd
pcre
PDO
Phar
random
readline
Reflection
session
SimpleXML
SPL
standard
tokenizer
xml
xmlreader
xmlwriter
zlib