1,461,930 questions
Score of -2
0 answers
111 views
Unable to connect PHP 7.0 to MySQL 8.4.7 [closed]
I am trying to connect PHP 7.0 app to MySQL 8.4.7. MySQL is running in Docker and I am using these command parameters:
db:
image: mysql:8.4.7
command: >
--character-set-server=...
Score of 1
0 answers
84 views
PHPUnit Coverage for preg_match
I have this very simple code which I am failing to see how to reach a coverage target of 100%.
final class StringValidator
{
public function matches(
string $pattern,
string $...
Score of -1
1 answer
91 views
file not being deleted after its expiry time passes
I'm trying to make a rate limiting function that prevent users from using specific forms when they reach a certain threshold. The limit will get reset after a certain amount of time. When a user ...
Score of -1
0 answers
85 views
Elementor editor stuck on infinite loading spinner on localhost (XAMPP) after removing Elementor Pro [closed]
I'm running WordPress locally using XAMPP on Windows.
Environment:
- WordPress: 6.8
- Elementor: 3.34.2
- PHP: 8.2.12
- Apache: XAMPP
- MySQL: XAMPP
Problem:
My website loads normally in the frontend, ...
Score of 0
0 answers
111 views
Woocomerce no product found hook not working
I am trying to execute a code on the product attribute page where there are no products this is my page as an example https://shop.mmstore.be/merk/rosso/. The problem is that the hook
add_action( '...
Score of 1
1 answer
115 views
How do I return to a different page using a different parameter to what my form uses?
I have created a form to update/edit rows in my database. This form works on updating the ID related to selected row that is updated. The page that this is selected from is displayed based on a ...
Best practices
1
vote
7
replies
243
views
PHP MYSQL Login Form, is there a better way to do it?
I am currently learning PHP and trying to follow good practices regarding login handling, sessions, input validation, and database access.
I wrote the following login script and added detailed ...
Score of 1
1 answer
70 views
Tabulator instance using ajaxURI not showing any data
I'm new to Tabulator library. I have a problem with ajax loading data. The last I used by other view ( framework CodeIgniter 4 ) is works. But, I don't know why on this case is not even works. I make ...
Score of 0
1 answer
106 views
Auto-discovery of event listeners inside a src custom directory
I’m having a problem with auto-discovery of my Listener under the src directory in a Laravel 12 project.
The application structure goes like this:
- app (nothing in here)
- bootstrap
-- app.php
- src
-...
Score of 1
2 answers
179 views
PHP and C application data exchange .so lib linkage problem
I have .so files for my distributed C and C++ project:
/home/j/OSL/build/lib/libOSL.so
I'm making a web interface for my engine and am learning how to exchange data.
My current technology stack is ...
Tooling
1
vote
2
replies
78
views
Recommendation Needed: Thumbnail Generation and Bulk Download Strategy for Large File Storage (GCP VM + R2)
I am currently hosting my website on a Google Cloud Platform (GCP) Virtual Machine (VM), where users upload large datasets (approximately 20–50GB per upload) consisting of image files such as JPG, PSD,...
Score of 1
0 answers
108 views
Only load content when accordion is expanded - WordPress & Elementor
I'm trying to clean up a client's page list by moving all of their forms (of which they have over 90, and all of them currently live on separate pages) into an accordion on one page using WordPress ...
Score of 0
1 answer
81 views
Not able to apply custom patch
I am using Magento with Docker. I added the S3 extension in Docker; it's installed
RUN composer require magecomp/magento-2-amazon-s3-remote-storage:1.0.8
My PHP version is 8.4. After the image build I ...
Score of 3
0 answers
164 views
Why does adding new fields to my .env file on Laravel lead to a 'command_not_found' message in the CLI? [closed]
I am new to Laravel development and have just started implementing my first services that interact with third party APIs. Per my best understanding from the docs, I have put environment variables into ...
Advice
3
votes
6
replies
173
views
In Laravel, when should I use Controllers, Services, Actions, Repositories, Model?
I'm trying to understand the commonly accepted architecture patterns used in Laravel applications.
I've come across different approaches in various projects:
Controller → Model
Controller → Service → ...