I am getting this error.
laravel/framework v5.4.9 requires ext-mbstring * -> the requested PHP extension mbstring is
missing from your system.
So I followed this: https://stackoverflow.com/a/49087941/14505740
And used
sudo apt-get install…
I need to use mb_strlen to sort an array of words with diacritics, but PHP does not recognize this function, although mb_string is installed.
So, if I say
function sortByStrlen($a, $b)
{
if (mb_strlen($a, "utf-8") === mb_strlen($b, "utf-8")) {
…
I've installed php-mbstring on Centos 7 with: yum install php-mbstring and everything seemed to go well please see screenshot below.
I then went to view the phpinfo() output and searched for "mbstring" and it's not showing up as installed. Anyone…
I recently bought a new Macbook pro with php 7.1 installed and everything was working fine since I tried to upgrade php to 7.2 using homebrew. When I try to show my version of php with php -v, and it works but it returns me the following warnings :…
I have string like this:
Óâàæàåìûé êëèåíò!
And want to decode it into cyrillic symbols. I'm already try to decode by mb_convert_encoding, but don't get the proper result.
$string = 'Óâàæàåìûé êëèåíò!';
$stringEncode =…
I have a FuelPhp project and i am trying to install dependencies via composer.
When i ran composer install on command line, i get following error;
The requested PHP extension ext-mbstring ^0.0.0 has the wrong version (7.0.18) installed. Install or…
Check this snippet:
mb_internal_encoding("UTF-8");
mb_regex_encoding("UTF-8");
mb_ereg_search_init('καλημέραCCC', 'C+');
$pos = mb_ereg_search_pos();
echo $pos[0];
(Please don't comment on this specific example, it's not my use case, it's a…
Can anyone give me any pointers on why the following ./configure settings do not appear to actually affect my build of PHP?
Details:
php-5.3.5
Compiling in order to use php-cgi on a per-domain basis
For example, my ./configure looks like…
I'm using VisualStdio 2010 on Windows 7.
I want to decrypt password using function and display result of decryption as TCHAR*.
Implementation here,
#include
#include
#include
char* _decrypt_password_v1(const char*…
I'm getting different results in php when using iconv vs mb_convert_encoding when trying to convert UTF-8 to UTF-16.
echo iconv('UTF-8', 'UTF-16', 'test'); // ��test
echo mb_convert_encoding('test', 'UTF-16', 'UTF-8'); // test
Notice the two �…
I'm having a problem on converting some arrays to UTF-8
Basically I'm extracting meta tags from website, and where the charset is not UTF-8, I attempt to convert them to UTF-8 so they can be stored and displayed properly. A original array before…
I feel like I'm losing my mind. Hoping someone can point me in the right direction.
I built an oop login/registration system following this tutorial PHP OOP Login/Register system
Everything was working perfectly until yesterday.
I had to rebuild…
I'm working on a Laravel project which is hosted on a remote server. When I run the project I get following error:
vendor/laravel/framework/src/Illuminate/Support/Str.php line 160:
Call to undefined function Illuminate\Support\mb_strimwidth()
So I…
I am trying to install mbstring in CentOS final release 5.6 (final). However, I get this error:
Missing Dependency: php-common = 5.1.6-45.el5_11 is needed by package php-mbstring-5.1.6-45.el5_11.x86_64 (updates)
I understand that I have to install…