Pinned content
View all 3 collectionsPHP admins have deemed these posts noteworthy.
Common Mistakes to Avoid in PHP
Start learning PHP — Useful resources for beginners and advanced
Can you answer these questions?
View all unanswered questionsThese questions still don't have an answer
Laravel app handling redirects unexpectedly
Error in react-webview: error loading page. Domain: undefined. Error code: 3. Description: SSL error: The certificate authority is not trusted
PHP8.2 ignores local value of `output_buffering` and uses master
Magento 2 PageBuilder field missing in production only
VK API Error 15 & 100 when posting photos to community wall via WordPress: "Access denied" and "No photo given" when using group token
Recommended answers
View all recommended answersThese answers have been recommended
Simple PHP API example
Variable names should describe what the variable contains, and have a consistent syntax. So, for me, $method is unclear, it is a $requestMethod or perhaps even a $httpRequestMethod. Shorter ...
Simple SQL (Get and Edit Data)
As mentioned, this code is highly vulnerable to SQL injections...don't use it like this. Learn how to use mysqli_execute_query() and specifics parameter placeholders. You also don't need to manually ...
Does my code look secure? And How do I prevent people from entering a page?
Wondering here... if it is secure in a technical sense, in which other non-technical sense it is not secure? Words do matter. I do however agree that many of the comments are badly worded, and don't ...
How to toggle bootstrap nav pane from a button
As mentioned, there are a few issues wrong usage document.getElementById('#nav-volunteers') #getElementById must NOT include # Invalid syntax - tabElement.show(); # .show() is not a native DOM method ...
Confused which one to take: js or php for back end (Laravel or Node.js)
Keep in mind the skills you acquire in web development are largely transferable. There's nothing preventing you from say, learning how to build a web app or an api using Laravel and then trying to ...
See what's trending
View all trending questionsThese are the most active questions in PHP Collective
How can I prevent SQL injection in PHP?
Reference Guide: What does this symbol mean in PHP? (PHP Syntax)
How do I check if a string contains a specific word?
How do I get a YouTube video thumbnail from the YouTube API?
Deleting an element from an array in PHP
Quick guide to Laravel package development
Properly removing API from Laravel project
How to trim (or non-breaking space) in PHP?
Evolution of Type Declarations in PHP
Start learning PHP — Useful resources for beginners and advanced
Simply submit a proposal, get it approved, and publish it.
See how the process works