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!
{{{Ken}}}
How the hell are you?
I've no idea how to help, but nice to see you back here. :)
Is there too many to do a manual inspection?
Hey Ken! Tea? Or in the teeth of the midterms, do you need something stronger?
I'm not helping unless you promise to stay around. :@
<?php
checkIfAllMyFoldersAreInTheDatabase();
?>
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
Thanks! I forgot that I changed my notification email address to one I never check! Sorry for the delay!
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?
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.
I'm pretty sure that's what Chrisss did. haha, he was helping me a lot on Hangouts.
Haha. "Powered by Wordpress"
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.
Wordpress is my kryptonite. X-O
Any special reason (apart from its huge number of bugs and amazingly poor integration with partner projects and plugins)?
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.
Oh right - you mean as a supplier where the client specifies it. Yes, I can see that would be annoying.
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.