I have a question about nginx. I have some webservers on my environment using nginx and they are behind Load balancer. Suddenly, all web services are down and I found this error log on nginx:
[error] 7097#7097: *44471950 connect() to…
I have an ubuntu server (16.04.4 LTS) with apache2 running php7.0 (Apache 2.0 Handler) and php7.2 (FPM/FastCGI).
PHP7.2 works fine, except that there are no extensions loaded - like json or anything else. See my phpinfo():
System Linux srvindkdif…
I am doing encryption which is working good but with same method I am doing decryption I am getting blank string not getting decryption string. I am using method AES-256-ECB and key is hexadecimal so I pass as
$key =…
Is there a way to continue in a PHP7.2 script after using
$sql = "INSERT INTO `table` SET `a` = 'aaa';
$result = mysqli_query($link,$sql,MYSQLI_ASYNC);
// $result is always 'true'
as a means of a delayed insert?
It now gives
Commands out of sync;…
I would like to yield some data. Problem is that chunk method require closure which do the job. Is there way to yield data like from foreach loop in this situation?
public function yieldRowData(): \Iterator
{
$this->transactionQuery
…
So i installed LEMP (nginx, mysql, php..) by following the digital ocean guide. But ubuntu 16.04 only comes with php7 by default and i need greater then 7.1 to run Laravel. I am confused on why every time i replace php 7 with php 7.2-fpm from…
So almost all the time, this problem is down to a mismatch of Windows x32/x64 versions of Apache and PHP or the respective Binary versions. But I've triple checked and quadruple checked that they are the correct versions. So now I'm thoroughly…
I've a problem to unerstand correctly array_values, when I do:
$array[] = 'data1'; // I want [0 => 'data1']
unset($array[0]); // I want []
$array = array_values($array); // I want [] but keys resetted
$array[] = 'data2'; // I want [0 =>…
This may sound stupid, but my weird configuration seems to force an Apache2 installation when attempting to uninstall php7.2-fpm! (I use nginx and the last thing I want to see on my server is an Apache installation...)
Here is the scenario: I'm…
After upgrade my VPS to PHP 7.2, my website have this error:
PHP Deprecated: Function create_function() is deprecated in /home/nickname/public_html/framework/web/CHttpRequest.php on line 968
and the code at this file…
The problem has been solved !
i check error.log in nginx
2019/04/16 17:29:39 [crit] 12060#12060: *261 open() "/var/lib/nginx/fastcgi/6/05/0000000056" failed (13: Permission denied) while reading upstream, client: 118.70.67.64, server: govangtam.org,…
Is there a way to set the CURLOPT_CONNECTTIMEOUT somehow globally for all cURL requests?
I have an issue where after an upgrade to PHP 7.2 some software’s cURLs now fail at a 10s connect timeout when before they did not. I can't exactly say what…
I have the error as said in title in the following code (guzzle http lib) please tell me how to fix it manually. I have no idea about function() use () construct to be honest so dont know how to fix it.
public function once($eventName, callable…
When passing a string with PDO::PARAM_INT there seems to be a change of behaviour in PHP 7.2. In Version 7.1 the updated value and the passed string were identical, in PHP 7.2 the updated value is "3" (see example below).
Of course I'm aware that…
I have read almost everything in web and documentation but i can't find solution for my Problem.
I have a variable stored in Session , then I want to put this variable in every url generated by route('some-route') .
In Session I have sub =…