Skip to content

Uploading large video file

I would like to build a webpage(simple form) where users can submit media files, most likely video files. The video files will be anywhere from 100mb – 500mb(or possibly more, depending on the file compression) I was wondering if you could recommend any hosting plan(or company) that may fit my requireme…

How can I make a page accessible to only admins in moodle?

I have a link on the settings.php page of my activity module that goes to a clear.php page that truncates a table in the database. As it stands even guests can still run this function by going to the clear.php themselves by typing in the address bar. Is there a way to check if a USER is an admin or

Random peaks in Mysql load slowing all users

We have a site that has been working pretty well for the past 2 years. But we are actually seeing random peaks in the database load that make the site very slow for a few seconds. These peaks only appear from a certain load on the server and are impossible to predict. More users = more peaks. Everything run v…

Difference between apk add and docker-php-ext-install in php install?

When I install php from aline, I use the form php-something. Taking gd as an example, I install php8-gd using RUN apk add php8-gd But I also saw an example using docker-php-ext-install . For example, RUN docker-php-ext-install gd This is not only gd, but also mysqli, bcmath, etc. How are the two commands diff…

How to check if all mysql results are equal

I’m facing a difficulty at the moment – I’m working on a real-estate website where the seller has some developments which have individual units within each development (a house with 4 apartments, for example). The development has a status column in the database which specifies if it is Avail…