logs archiveIRC Archive / Freenode / #php / 2015 / November / 20 / 15
phpPrime
heh, how do you go from CentOS7 to bleeding edge PHP 7 in production?
Bad_Advice_Cat
I plan to use archlinux for prod.
Or gentoo if I learn that.
tw2113
install them, run them
gcds
Ahrotahntee: https://github.com/gcds/action_blocks_concept Here is my proof of concept
and everyone else what do you think about this kinda library? https://github.com/gcds/action_blocks_concept
marchelly
Hi. I have an array $valuses = array(10,20,40,60,100) and I want to create new array with intervals berween elements in first array. So it should be $intervals = array(10,20,20,40) How this could be done?
z1haze2
I am trying to come up with an efficient way to query a massive list of servers every few minutes or so.. how could that be done economically
gcds
marchelly: simple foreach and bit logic would not work?
marchelly
gcds, this would work like a charm, but I thought that it could be some magic like array_diff and so on
z1haze2
For each one, there is to make a socket connection, query for data, update the row in the database with like 10 columns ,etc.. it would seem like that could be pretty taxing to just create a cron task to update 25000 servers every 5 minutes, it wouldnt even work it would time out im sure
         

sorabji
marchelly: you can do something magic with array_reduce if you wanted
Korvin
Is there a reason that typehint errors don't try to autoload the hinted clas?
class*
marchelly
z1haze2, I don't know your case but such a job is for zabbix or nagios + script to update DB
phpPrime
Korvin, Why would a typehint trigger an autoloader?
Korvin
This funky code: https://3v4l.org/JFHdF ^^
phpPrime I realize that this is ridiculous because I'm hinting against an alias
z1haze2
huh?
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 next »