I'm working on implementing some geoIP functionality to redirect a user away from my .com site to the relevant country domain (.fr, .es, .co.uk ...etc).
I've the following in my index.php to check the users IP:
ini_set('display_errors',…
Installed earlier version of PHP on a new Ubuntu installation using phpbrew and now my phpmyadmin is throwing an error.
The error reads:
The mbstring extension is missing. Please check your PHP configuration.
OS: Ubuntu 14.04 LTS
I have…
I'm get data from MySQL db, varchar(255) utf8_general_ci field and try to write the text to a PDF with PHP. I need to determine the string length in the PDF to limit the output of the text in a table. But I noticed that the output of…
I'm having problem with mbstring in my Apache2.2/Win7/PHP5.3 setup, though I think it's correctly configured in my php.ini:
extension_dir = "ext"
extension=php_mbstring.dll
I get the following:
Fatal error: Call to undefined function…
I have an application that has so far been in English only. Content encoding throughout templates and database has been UTF-8. I am now looking to internationalize/translate the application into languages that have character sets absolutely needing…
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…
On centos (7.6), I've a script to deploy a set of php dependencies with yum tools and remi-repo.
I need to migrate this installation set on a redhat (7.9). On this distribution, I've this issue during installation of php-mbdstring module.
The lib…
I have mediawiki on my local machine. I have php and php-mbstring installed. When I run phpinfo(), mbstring shows up. I have checked that I have mbstring.ini and mbstring.so, and they are on my machine.
When I run php maintenance/update.php I get…
I'm using mb_strtolower to make a string lowercase, but sometimes text contains urls with upper case. And when I use mb_strtolower, of course the urls changing and not working.
How can I convert string to lower without changin urls?
Ok, so I have searched other questions without success.
I am getting this error on a virtual box, which I cannot alter in any way.
MBString is enabled
IconV is enabled
An exception has been thrown during the rendering of a template ("Notice:…
I have php version 7.0.22.
I tried doing
sudo apt-get install mbstring ,
sudo apt-get install php-mbstring ,
sudo apt-get install php7.0-mbstring
but every time it says
Unable to locate package mbstring
Please help.
In PHP 5.6 the following configuration variables have been deprecated:
mbstring.internal_encoding
mbstring.http_input
mbstring.http_output
Instead we are told that PHP 5.6 and later users should leave these empty and set default_charset instead.…
Script: Drupal 8.1.3, php 5.6.22
php.ini settings:
.htaccess:
About once a minute, I get following errors in error_log file:
[23-Jun-2016 13:48:49 UTC] PHP Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be…
UPDATE: Some of the information posted here may be useful to persons with similar problems, and arkascha's comment gave some insight. But I threw up my hands and just nuked and repaved my system. By being careful not to install any wrong versions…