517 questions
0
votes
1
answer
405
views
How to add mysql / mysqli module to php 5.5 in Docker?
I'm trying to connect PHP to MySQL but getting this error:
Fatal error: Call to undefined function mysql_connect() in /var/www/html/wp-includes/wp-db.php on line 1568
I'm trying to add mysql / mysqli ...
0
votes
1
answer
402
views
Containerized PHP application sessions directory is empty
We are migrating a PHP website from an old host to a container. The old code runs on VM directly, now we built a container that facilitate the PHP website. Both old and new PHP website run on top of ...
1
vote
2
answers
71
views
Date difference in PHP code does not execute
I have a code in PHP 5.5.11 where I am trying to do the following:
Get today's date in a variable --> $today
Calculate the end of month from a date in a form --> $st_dt_eom
if difference ...
0
votes
1
answer
326
views
Prestashop 1.6 - Can't login into admin panel or add items to cart if I change php version
I have a Prestashop 1.6.1.14 (default theme) running on php 5.5.38 and I would like to update the php version... but when I set it to 5.6 (or higher ... up to 7.1) the site is visible (and no errors ...
1
vote
0
answers
139
views
PHP 5 code, Can I upgrade mysql from mysql 5.5?
I am working with a old ~2013 Drupal site with a lot of custom php 5 code woth a bunch of extra mysql database tables. The mysql version is 5.5. I need to setup a new mysql server. I would like to use ...
0
votes
1
answer
602
views
pcntl_fork not working when being used with apache but does work from CLI
I have a small mission critical web app that needs to respond to all requests rather fast. I need to run some other code that can potentially take a few seconds. I was trying to use pcntl_fork. If I ...
1
vote
0
answers
61
views
CakePHP 2.7 - changed server - issues finding Classes
Transferred an old CakePHP project to a new server to do some testing ( i don't have access to it's original server) . It's cakePHP 2.7 running on php 5.5. The project was originally built using PEAR, ...
-1
votes
1
answer
212
views
PHP5.5 right path for the /sources.list
I can't find the right path of PHP5.5 for the /sources.list, any advice?
xxxxxx@xxxx:/usr/local/src/php5-build/php-5.5.7# apt-get build-dep 5.5* ...
0
votes
0
answers
119
views
PHP 5.5 vs 7.4 TTFB slower
I have recently copied my website to a other server (which performs way better than the old one). I am running 7.4 on that new website, but I noticed the Time to the First Byte went up from 200 ms to ...
0
votes
1
answer
254
views
POST data are not received when a PHP script is called remotely
I don't receive $_POST data in a PHP script when it is called remotely. I tried it using cURL and Postman.
Content-type: form-data
curl --location --request POST 'http://example.com/backend.php?...
0
votes
0
answers
80
views
The same cmd curl is not working on PHP 5.5.12
I know this question as been asked several times but it keep getting an error message when i do my curl request.
I've seen several forums and several curl cmd converter but they arn't going anywhere ...
0
votes
1
answer
92
views
How can you downgrade PHP 7's parameter unpacking to v5.5?
I need to down port one of my most popular PHP packages from 7.0 to 5.5, and it's been years and years since I wrote PHP 5.5 code and I cannot figure out this bit:
$options = array_merge_recursive(
...
-2
votes
1
answer
185
views
Can not get .css files from the root folder on Codeigniter 2.2.6 when changing server php version from 5.5 to 5.6
I use codeigniter 2.2.6 (recently it was 2.2.1. - changed it few minutes ago but problem is unsolved).
The case is: when i change server PHP version from current 5.5 to 5.6 (tried to change to 7.1 ...
0
votes
1
answer
1k
views
How to switch default MySql driver for PHP?
I am running a legacy system on the server with PHP 5.5.38 and am trying to connect with PDO to a MySQL 8.0 database, which results in the famous "Server sent charset unknown to the client. Please, ...
0
votes
0
answers
131
views
How to inject a Request object into a Twig template from a CLI unit test?
I'm trying to unit test some Symfony 2.8 code that uses a Twig 1.24 template (I'm not actually testing the template). The template has a hard coded reference to app.request, which doesn't exist under ...