PHP Halp!

From: Ken (SHIELDSIT) 6 Nov 2018 22:29
To: ALL1 of 22
Hola peeps!  Haven't been here in ages, how is everyone?  I'm hoping someone can help me with some PHP code I'm struggling with.

The long story short is, I use glob to get a list of folders and insert them into a mysql database.  But I'd like to be able to see if there are differences between the glob and sql results to see if I need to delete something from the database or other things like that.  I can post my code if that helps but I've made so many changes that I've lost the closest thing to working that I had.

Thanks my foreign friends!
From: graphitone 6 Nov 2018 23:17
To: Ken (SHIELDSIT) 2 of 22
{{{Ken}}}

How the hell are you?

I've no idea how to help, but nice to see you back here. :)
From: CHYRON (DSMITHHFX) 6 Nov 2018 23:20
To: Ken (SHIELDSIT) 3 of 22
Is there too many to do a manual inspection?
From: Manthorp 6 Nov 2018 23:42
To: Ken (SHIELDSIT) 4 of 22
Hey Ken! Tea?  Or in the teeth of the midterms, do you need something stronger?
From: Peter (BOUGHTONP) 6 Nov 2018 23:54
To: Ken (SHIELDSIT) 5 of 22
I'm not helping unless you promise to stay around. :@
From: Chris (CHRISSS) 6 Nov 2018 23:57
To: Ken (SHIELDSIT) 6 of 22
<?php
checkIfAllMyFoldersAreInTheDatabase();
?>
From: Matt 7 Nov 2018 18:45
To: Ken (SHIELDSIT) 7 of 22
You should be able to use a combination of array_diff to determine the ones that you need to remove and perform DELETE queries to remove them.

Also, get yo ass back on Whatsapp
From: Ken (SHIELDSIT)17 Nov 2018 02:59
To: graphitone 8 of 22
Thanks!  I forgot that I changed my notification email address to one I never check!  Sorry for the delay!
From: Ken (SHIELDSIT)17 Nov 2018 03:00
To: Matt 9 of 22
I cannot stand that app.  I moved back to Hangouts with the cool kids... well, Ben's there so we aren't all cool!

Got snow?
From: Ken (SHIELDSIT)17 Nov 2018 03:03
To: ALL10 of 22
Thanks all!  Been meaning to come around more!  I have been trying to ignore the politic things going on.

Hiya PB!

Matt, I've been working on it for a few weeks and I have it working somewhat.  Learning as I go so it's interesting!  I'm sure my code isn't up to standards but I want to get it all working first and then make it pretty.
From: Ken (SHIELDSIT)17 Nov 2018 03:04
To: Chris (CHRISSS) 11 of 22
 :-P
From: Ken (SHIELDSIT)17 Nov 2018 03:08
To: Matt 12 of 22
I'm pretty sure that's what Chrisss did.  haha, he was helping me a lot on Hangouts.
From: Peter (BOUGHTONP)18 Nov 2018 00:22
To: ALL13 of 22
Why doesn't Teh get a Matrix or Kune server?
From: CHYRON (DSMITHHFX)18 Nov 2018 12:20
To: Peter (BOUGHTONP) 14 of 22
Haha. "Powered by Wordpress"
From: Peter (BOUGHTONP)19 Nov 2018 20:57
To: CHYRON (DSMITHHFX) 15 of 22
I'm no fan of Wordpress, but I have no issues with software projects picking an off-the-shelf CMS rather than waste time better spent on the project itself in building a site from scratch.
From: CHYRON (DSMITHHFX)19 Nov 2018 21:32
To: Peter (BOUGHTONP) 16 of 22
Wordpress is my kryptonite.  X-O
From: william (WILLIAMA)19 Nov 2018 23:04
To: CHYRON (DSMITHHFX) 17 of 22
Any special reason (apart from its huge number of bugs and amazingly poor integration with partner projects and plugins)?
From: CHYRON (DSMITHHFX)20 Nov 2018 01:01
To: william (WILLIAMA) 18 of 22
Not needed in ~90% of use cases. Clients too dumb to use it without routinely screwing it up, so better off with plain vanilla HTML5, and get edits done faster, better, cheaper by maintenance contract.
From: william (WILLIAMA)20 Nov 2018 13:31
To: CHYRON (DSMITHHFX) 19 of 22
Oh right - you mean as a supplier where the client specifies it. Yes, I can see that would be annoying. 
From: CHYRON (DSMITHHFX)20 Nov 2018 15:43
To: william (WILLIAMA) 20 of 22
Apart from that, I just find it super-slow and kludgy to populate with content through the CMS. Minor edits are ok. The template structure is also very constraining, and the visual designers here aren't very mindful, or appreciative of constraints. Custom code nearly always works out better.