Skip to content
Advertisement

watch database and wait for changes in laravel

i have a messaging system app and every message has some status in it with 3 types of done , in progress,not started so when i send a message to user B its not started for example so when user B receive the message he changes the status to in progress here i want to send a notification to the

How do I use array_map recursively in PHP?

I am attempting to convert an associative array to a 2D array to allow me to export it to Google Sheets. I’ve figured out a simplistic solution that works as follows: This produces the following: This is the output I’m looking for, but there are 27 “rowSet”s, and it seems there must be a recursive way of performing this task.

Set a variable of a class in another class

I have a class address_book in which I want to set $DBConnection using method from another class: Another class: So var_dum should return ‘1’ as it has to be assigned to protected $DBConnection; in the first class. I’m starting my learning of PHP OOP so probably everything is bad. Any way it has to work like this. In first class

What can do Virus wp-tmp.php on WordPress

I found this virus on My WordPress on wp-includes/ Files that has scan by siteguarding.com and other and found bad scripts ad this content file “wp-tmp.php” : What was this file doing? And how is know that file is insert on my website file root ? I have chating with siteguarding.com support and tell me “Your website is hacked” wp-includes/wp-tmp.php

Advertisement