1,286 questions
0
votes
0
answers
100
views
IIS Application pool hangs for PHP site
On a Windows Server 2016 Standard with IIS 10.0 I am experiencing serious problems with the IIS application pool hanging for a PHP site written in YII, making the site unresponsive until the pool is ...
0
votes
1
answer
46
views
PHP Match two Hebrew words with nekudots as identical
I need a bit of help in PHP.
I have two Hebrew words which are perfectly the same from the point of view of lexical meaning, but they do not match in bit wise comparison.
1. version: הִפַּלְנוּ
2. ...
0
votes
0
answers
100
views
Apache2 failing when enabling php mod (Ubuntu 20.4)
I've install php5.3 (from ppa:sergey-dryabzhinsky/php53), but when installing apache2 and then enabling it through sudo a2enmod php53 the output says to run sudo systemctl restart apache2, however ...
0
votes
1
answer
91
views
Errors PHP Notice: Undefined offset:, Trying to access array offset on value of type null
I get multiples php errors in server log , the error show on 2 lines of my php code, However php script is working but it show these errors in server log.
PHP Notice: Trying to access array offset on ...
0
votes
0
answers
32
views
share a property in different functions within a same class in php wordpress
I have this code example, where I am not receiving the value of $something in the passData() function, since null comes, what is happening, this is code example:
class ClassName extend X {
...
1
vote
1
answer
246
views
Upgrading from PHP 5 to PHP 7.4
I'm upgrading an exsiting application from PHP 5.3 to PHP 7.4
class Cl_Detail_Familles_Produit extends Cl_Form
{
public $ref_annuler = "../coh/list_produit.inc";
.
.
...
1
vote
1
answer
364
views
PHP string without quotes
I'm upgrading an exsiting application from php 5.3 to php 7.
I found this code in the application $this->upload_err = ERR_CORRUPTION;
I didn't found any const whith the name ERR_CORRUPTION
can we ...
1
vote
2
answers
1k
views
PHP Imagick breaks SVG on conversion to PNG
I'm updating a super legacy app and I'm trying to move from PHP 5.3 to PHP 5.6. Everything is going smoothly except for Imagick.
On old server we were using Imagick 3.0.0 and now on newer server with ...
1
vote
1
answer
408
views
Migration to PHP8
I have code from old PHP.
But when I tried to execute it by PHP 8.
The first code was:
PasteBin
I had error:
Fatal error: Array and string offset access syntax with curly braces
is no longer ...
1
vote
0
answers
602
views
PDF is printed in text to browser instead of downloaded
I'm working on a legacy app running php 5.3 and for some reason on production server PDF files are printed in gibberish straight to the browser instead of being downloaded.
Nothing was changed and in ...
0
votes
2
answers
68
views
How to create recursive array from the loop PHP? [closed]
I have an array like below and its dynamic array.
$array = [10,20,30,40,50];
I want to create an another array recursively using the above array values. Looks like below
Array
(
[10] => ...
3
votes
0
answers
1k
views
Laravel multiple morph relation in one table
i have problem in laravel. i have created multiple morph in one table.
table structure
table_name : morphicable
id:
model_id: eg: '1'
model_type: eg 'model/comment'
model_one_id: eg: '1'...
-2
votes
1
answer
1k
views
Stripe Checkout PHP Causes mysterious 404 Error OnLoad
I'm having a hard time testing the Stripe Checkout from single-checkout-subscription on my local xampp server. So far, I have a Stripe account, created my test keys, product and prices, installed ...
1
vote
0
answers
415
views
set_charset utf8mb4 not working in php 5.3
For some reason i can't change the charset of the mysqli connection to utf8mb4 on PHP 5.3.0, 5.3.1, 5.3.2, etc... up to PHP 5.4.0.
I have a class which extends mysqli and in the constructor after i ...
-1
votes
1
answer
174
views
Downgrade to PHP 5.3
I've got a line of code that I need to get working in PHP 5.3.3.
I cannot upgrade the PHP version.
The error is in the last line below with the ::class property
(unexpected T_CLASS, expecting ...