Questions tagged [php-5.6]

PHP 5.6 was the successor to PHP 5.5. It was released on August 24, 2014 and reached end-of-life on December 31, 2018. Use this tag for version-specific issues relating to specifically to PHP 5.6.

PHP 5.6.0 came with new features such as (incomplete list):

  • Constant scalar expressions
  • Variadic functions
  • Argument unpacking
  • Support for large(>2GiB) file uploads
  • SSL/TLS improvements
  • New command line debugger called phpdbg

See Migrating from PHP 5.5.x to PHP 5.6.x for more information.

Information

  • If you want to talk about PHP or if you have a question, you can come to Chat Room 11: PHP.
  • For global question on PHP, please use the generic tag:
886 questions
1
vote
1 answer

Non-static method common\components\DirectoryHelpers::mimeType() should not be called statically

totally php newbie here. need help about our library program here. i try to upload our book cover to our webserver, but get this error instead. the problem lines here got this task to connecting our offline library sytem to webserver ( make it…
1
vote
0 answers

Installing php5.6-mbstring on Ubuntu 16.04

Before the question, I am running on Ubuntu 16.04. Upgrading is not an immediate option. I have installed php5.6 following the instructions in this article: https://www.liquidweb.com/kb/install-multiple-php-versions-on-ubuntu-16-04/ Following those…
tniles320
  • 33
  • 6
1
vote
0 answers

php5.6-zip not available?

I am currently using php 5.6 for one of my very old project, it is on ubuntu 16.04. I needed to install php-zip extension on it. I tried apt-get install php5.6-zip, did not work. Showed there is no package with that name. So, I searched and it…
Abir Imtiaz
  • 33
  • 1
  • 10
1
vote
1 answer

PHP - Avoid writting nested if statement

I have this variable: $otcId; which value can be retrieved from 3 different places(keep in mind this value will always be the same in all places): $otcId = $this->dat['id_rfcOV']; $otcId = $this->request['id_rfcOV']; $otcId =…
1
vote
3 answers

php.ini not reflecting changes ever after server restart

I needed to change few values in php.ini file and after running phpinfo() within my application, found my php.ini file in below location Configuration File (php.ini) Path /opt/php-5.6.30/lib Loaded Configuration File …
1
vote
2 answers

PHP 5 to PHP 7 transpiler

I have a big project in php 5 and it's well documented. Now, I want to migrate to php 7.2 and I have already checked the compatibility using phpstan and every thing is alright. So, I wonder if there is a tool that could automatically transform the…
Ahmed
  • 15
  • 5
1
vote
0 answers

How to Solve mysqli_real_connect(): Server sent charset (255) unknown to the client. Please, report to the developers

I am working in amazon ec2. I have installed php5.6 and mysql 8.0. When i try to login with my username and password. When login in says... mysqli_real_connect(): Server sent charset (255) unknown to the client. Please, report to the …
Karthi Keyan
  • 127
  • 7
1
vote
1 answer

My laravel 5.6 project is opening on localhost but not on php artisan serve cmd

I have copied laravel 5.6 project from friend's PC. It is running well on his PC but not on mine. When I run php artisan serve command in cmd it gives me the error in cmd(screenshot attached).cmd screenshot It opens on localhost/tailorMS…
Hashir
  • 95
  • 7
1
vote
0 answers

Fixing remote IP and REMOTE_ADDR with mod_rpaf / mod_remoteip doesn't work

So I'm migrating some legacy PHP project from an old server to a new one. New server is using Debian 10 / Nginx / Apache 2.4 / PHP 5.6.40 I've set up everything like I'm used to, using mod_rpaf to override the remote IP address with the one coming…
mephisto123
  • 1,400
  • 13
  • 38
1
vote
1 answer

Xdebug doesn't even try to connect to port 9000

I have php5-fpm running on Raspberry Pi and serving the web site. I have installed php5-xdebug package and restarted php5-fpm and I hope have configured it for remote debug to 127.0.0.1:9000. I put server on 9000 to listen with nc -l 9000…
Dims
  • 47,675
  • 117
  • 331
  • 600
1
vote
1 answer

Site only opens in localhost

I'm setting up a windows server 2019 with apache 2.4 and PHP 5.6. I was able to load the phpinfo in the browser with localhost. I am trying to get the sites to open up in an htdocs folder on another drive (D:) using an alias that, according to our…
John Beasley
  • 2,577
  • 9
  • 43
  • 89
1
vote
0 answers

Swiss post tracking web service implementation using php soap

I'm working on a E-commerce site on which orders are placed. i want to track that delivery status of order and I need to give a status of order to user over mail. I have to use Swiss Post Tracking Web Service API. Can anyone show me how to do so? I…
Ramya
  • 11
  • 2
1
vote
2 answers

How can I convert a single Unicode value out of mb_convert_encoding into integer number

In PHP, How can I convert the Unicode value out of mb_convert_encoding into integer number $A = mb_convert_encoding('و',"UTF-8"); $A = 'و'; I need to convert 'و' to 1608 which is the decimal equivalent of 'و'
AndroidPlayer2
  • 346
  • 1
  • 2
  • 13
1
vote
0 answers

Minimum Latency From header Redirect Php

To reduce latency, Generally all the redirection, I have done so far is done by Nginx rules. Now I have a scenario, where I need to implement a rule which will forward all request to the different port based on some attribute of the logged-in…
chicharito
  • 1,047
  • 3
  • 12
  • 41
1
vote
0 answers

PHP 7.x Array Handling/expanding

We´re facing a big problem in our company but let me explain... In Php 5.6 we expanded our array like the example below if($_SESSION[$id]['UH'][$_SESSION[$id]['X']['CONTROL']['syuni']]['fixed_values'][$_header_key] != '') …
Yogg Saron
  • 11
  • 1