Skip to content

Unable to locate package in docker image

I am trying to setup a docker image for an app using laravel and postgres but I’m running into difficulties trying to install the php driver for postgres. My Dockerfile: FROM php:7.4-fpm # Arguments …

Why the session destroyed every page load in mobile browsers?

My problem is that I have a website and when I refresh the a page, the session get destroyed. This means I lost my cart, my wishlist, etc… It happens in Safari and Firefox too, but on my PC the session stays there. This is not an incognito tab/window, I not deleting my cookies and/or session data betwee…

Simple HTML DOM returning underscores

Alright, i am using Simple HTML DOM (https://simplehtmldom.sourceforge.io/) to get some data from a page. The data i would like to get are these selector options: I am using this code to get it: And then this code to display it on my page: But when i look at my page this is what i get (literally copied from c…

mysql best way to count orders ordered by status

For my panel I update my “status-buttons” with count-numbers. F.e. New 2, backorder 5, cancelled 3, shipped 201 In the back, I now count them like this: I know… “Use prepared statements”… I will, in the updated version of my script 🙂 But is there an easier way to get all th…