I run on Amazon linux 2 AMI, With PHP 7.2.5 and apache The probleme is: Call to undefined function mb_convert_encoding The initial need is to be able to read an uploaded text file correctly and have its content inserted in DB, knowing that the encodings can be various The problem i am struggling with is to get mb_convert_encoding working !
Tag: linux
Xdebug Ubuntu 18.04 and PHP 7.2
I just updated Ubuntu to version 18.04 and I have version 7.2 of PHP, if I execute the command “php -v” I get this result root@laptop1:/etc/apache2/sites-enabled# php -v PHP 7.2.3-1ubuntu1 (cli) (…
How can I find a list of all the php files that are called when a page loads?
I’m taking over a website for my job. The last developer didn’t understand the architecture of our CMS and hacked his way around everything. Also, he documented nothing. I need to track back and see …
What’s the difference between xdebug.ini and php.ini
Recently I installed lamp and php-xdebug on an ubuntu 16.04 box. I noticed that now I have the following files /etc/php/7.0/apache2/conf.d/20-xdebug.ini /etc/php/7.0/cli/conf.d/20-xdebug.ini /etc/…
Upgrade PHP on AWS Linux
I have an AWS server running a website with NGINX and PHP. I originally installed these using the following: sudo yum install -y nginx php-fpm The version of PHP that is installed is 5.3.29 which but I need at least 5.4 to run a payments plug-in. All the info online indicates a PHP upgrade actually involves a reinstall. So I
Get program name for PID using PHP
I am attempting to do something that is a little risky. Its a private script, but i want to add some security so I don’t accidentally enter an invalid PID. Currently if a script hangs it will lock …
General error: 20003 Adaptive Server connection timed out [20003] (severity 6)
Hi Following is error what I am getting:- I am trying to connect to MS-SQL-Server on windows from linux laravel 5.2 code snippet. There is firewall disable on windows machine. I am able to telnet on windows ip on ms sql default available port. I am not using free TDS, so this is not duplicate of TDS and even that
Composer installation requirements
I am trying to install composer to the laravel project. When im doing sudo composer install in projects directory it shows me two errors: I was checking how to install it and I found these commands: composer require simplesoftwareio/simple-qrcode composer require esendex/sdk Anyway, they are giving me the same error. Is there anything I can do about it? Answer Looks
Imagick – no decode delegate for this image format
I am trying to convert PNGs to GIF using ImageMagick on my Ubuntu server. I used a PHP code to generate it however when I ran it, I received.. PHP Fatal error: Uncaught exception ‘ImagickException’ …
Interpreting mysqldumpslow results
I have modified mysql config to log slow queries And interpreting them with mysqldumpslow. One of the results is as follows Question: what do the numbers in brackets mean? The query does take about 0.21s when run with mysql (or via mysql GUI’s); however when making a request to a page the time span is more like 5 seconds. Extra