Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!

Question list filters

Filter by
Sorted by
Tagged with
Filter by Employee ID
Score of -5
1 answer
41 views

Check inside execute(\[ ?\>\<?php // JSON.stringify skapar den JSON-text som server/register.php läser från php://input. body: JSON.stringify({ username: user, password: ...
Score of 0
0 answers
65 views

I am using Laravel 13, Livewire V3, and the Laravel AI SDK to generate AI messages based on Knowledge Chunks. That part works great, and it streams to the page. However, the problem is that the ...
Score of 1
1 answer
143 views

I'm currently making a web crawler in PHP for my A level computer science project. I have it working, getting all the links from a page, trying to run the page, and then if it doesn't throw an error ...
Best practices
1 vote
5 replies
112 views

I am architecting a high-concurrency synchronization endpoint in Laravel where thousands of cross-platform mobile clients concurrently send payload mutations to update a single user state row in a ...
Score of -3
0 answers
170 views

JS encrypting is working (I think): function TestInfo() { secretKey = 'VPiWeZdL1JO9v5Lmnlx5Ae2JhqaIEX8X'; plainText = "This is a clear string"; // Generate a random 16-...
Score of 0
0 answers
114 views

I'm experiencing a strange issue with Laravel 13 on Windows 11. Any Artisan command that requires interactive input immediately exits before I can type anything. For example: php artisan migrate ...
Score of 0
0 answers
107 views

I am deleting files if there is no corresponding / matching file (they just have different file extensions, and are in different folders) but - !is_file keeps working as if no file are found when some ...
Score of 0
3 answers
120 views

Problem: I am experiencing an issue with the PHP Intelephense extension in Visual Studio Code. Although my files are correctly recognized as PHP (as shown in the status bar), the code remains ...
Advice
1 vote
6 replies
161 views

we are actually planning to develop a website for our sports club. It includes session registrations, payment gateway, shop- e commerce and coupon generation options. Trying to figure out if word ...
Score of 0
1 answer
80 views

I try to create a custom WordPress template but i can't combine the code that i need. I wanna combine this 2 PHP codes. What i try is to echo for example a list of 3 posts with prefix in the title a ...
Score of 1
0 answers
120 views

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
118 views

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 0
0 answers
146 views

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
130 views

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
3 votes
7 replies
267 views

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 ...

15 30 50 per page
1
2 3 4 5
97448