CARVIEW |
Select Language
HTTP/2 200
date: Wed, 23 Jul 2025 19:21:37 GMT
content-type: text/html; charset=utf-8
cf-ray: 963d8ab868ed3e92-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=a1766050-2c99-48e1-ac36-4520a0d03721; expires=Thu, 23 Jul 2026 19:21:37 GMT; domain=.stackexchange.com; path=/; secure; httponly
strict-transport-security: max-age=31536000; includeSubDomains
vary: Accept-Encoding
content-security-policy: upgrade-insecure-requests; frame-ancestors 'self' https://stackexchange.com
x-clacks-overhead: GNU Terry Pratchett
x-frame-options: SAMEORIGIN
x-request-guid: c93605ac-760a-4590-a79a-5b87a9f09dde
x-worker-origin-response-time: 522000000
x-dns-prefetch-control: off
set-cookie: prov=a1766050-2c99-48e1-ac36-4520a0d03721; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=uNNkshYCL5Oliyq297puV2cA0XVIgQFYTVg_MeV4zZ0-1753298497-1.0.1.1-R3YK7.cmimMr1MoQnj9N4KC1k7o4ahSPCzC8cs4LwHGdfrxvYHYXzDSQwMKhvVF1xgBVifvYibKkER4TSi8Ei02Xpy6opr_L7CUfODsXA7c; path=/; expires=Wed, 23-Jul-25 19:51:37 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=Jc98roH20akpUv8sUZh2czZZbhAhq03NcsToLI9Xvmk-1753298497872-0.0.1.1-604800000; path=/; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
content-encoding: gzip
Newest 'php' Questions - Code Review Stack Exchange
Skip to main content
Stack Exchange Network
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack ExchangeTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about TeamsQuestions tagged [php]
PHP is a widely-used, general-purpose scripting language that is especially suited for web development.
4,267 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
3
votes
1
answer
156
views
Rendering data from mutiple models using controller and send to a single view
I have a master page, where I need to render data from multiple models. I have made a prototype of that page to show only the required conditions.
What is the best approach for controller to retrieve ...
6
votes
3
answers
490
views
PHP PDO wrapper class with security
I have created following php PDO wrapper class with the help of google and other some websites and my little knowledge.
I will use this for less coding work without change whole previous coded ...
3
votes
1
answer
215
views
Image preview and delete for Laravel blog application
I am working on a blogging application in Laravel 8.
I have put together a way to preview and remove the main article image.
In the ArticleController.php controller,...
3
votes
1
answer
74
views
A function that returns correct number of inserted, updated and skipped rows for INSERT or UPDATE query
When MySQL executes a Data Modification Query, it provides some additional info on the outcome, which is usually displayed in the console. This info is also being exposed through MySQL C API and this ...
1
vote
2
answers
163
views
Convert binary string to text base64 [closed]
I have a dictionary with a lot of symbols, each of which is encoded in a huffman binary string.
Example:
Symbol
Huffman Code
you
010
shall
0111
not
00111
pass
00001
...
...
Therefore I encode the ...
3
votes
1
answer
60
views
PHP script to generate named CSS grid areas
I wrote this PHP script to dynamically generate a topic header layout using CSS grid. The $columns array defines each column’s properties—like its CSS class, size, ...
4
votes
2
answers
472
views
Improving upon the Security of my Export Remote Database to Local PHP API
I am working on an in-house application, and I am working on how our application communicates with our remote server.
I have a PHP script that acts as an API to call to our MySQL DB and dump its ...
3
votes
1
answer
59
views
Wordpress custom registration form with additional fields
I work on plugin for custom auth pages for WordPress and I try to create a custom registration form with additional fields. it has a shortcode in Beaver Builder. Is this the correct approach, and ...
4
votes
1
answer
149
views
Replace node type in Drupal
In Drupal 11 or greater, this code is used to change the node type of a node. How would you improve the code if at all?
...
5
votes
1
answer
546
views
User Management API
I got as task to build a simple Laravel API that should:
1 - Create User API
2 - Get Users API
So I run the artisan command to ...
2
votes
0
answers
45
views
SPA in Symfony UX Turbo
I am currently learning Symfony UX. My focus today was on UX Turbo. I basically wanted to create a very basic Single Page Application.
User can 'login' using a form, submitting the form should render ...
4
votes
1
answer
146
views
Creating Dedicated Database for database test cases (Tests that I need to check the data are written or read sucessfully) in phpunit
I am making a base test class that bootstraps database Test cases
...
4
votes
3
answers
1k
views
A function to convert numbers from scientific notation to plain decimal
When PHP converts a number to string (for printing it out, for example), sometimes it may convert it to scientific notation out of nowhere (0.000021 for example). Or the number can be already in a ...
0
votes
0
answers
44
views
Securely send data as a parameter in a Livewire action method
I have friendship functionality in my Laravel application and saw Crypt is available from within blade view templates. Is this a common practice when trying to send ...
1
vote
0
answers
37
views
Duplicating answers from a multi-section form populating multiple tables
I am implementing a system in which a client fills a form. Each form has multiple sections and each section populates multiple tables, thus user fills each section separately.
I was asked to make a ...
- The Overflow Blog
-
-
- Featured on Meta
-
-
Related Tags
object-oriented × 650
mysql × 579
security × 391
pdo × 327
laravel × 255
mysqli × 246
html × 240
beginner × 238
performance × 225
array × 220
mvc × 203
sql × 194
php5 × 186
javascript × 183
authentication × 157
validation × 125
design-patterns × 118
form × 111
wordpress × 111
ajax × 109
jquery × 106
session × 95
classes × 94
codeigniter × 91
database × 91
more related tags
Hot Network Questions
- Why were two 2x6 boards installed on top of a window rough sill?
- When you view a historical event with an incorrect modern lens
- Error on numerical integation
- Do standing sound waves sound different?
- What is that "T" in the pattern string of the date-command?
- A word that describes some people
- Pourquoi "better to use ne alone" dans ce cas, "with savoir followed by an indirect question"?
- Render / Convert .midi / .mid to FLAC on Linux
- Why is the Schrödinger wave equation totally different from the classical wave equation?
- Why do I get a INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY exception when my Apex code is without sharing?
- Why is my gooseberry jam so stiff?
- How should a typical reward curve look like while training a RL model
- Define command valid only for a specific environment in expl3
- Huge Difference in Interaction P-values Between Linear vs. Ordinal Regression (0.991 vs. 0.001)
- How can I grow kelp or seaweed at home in a small container?
- Why is `&self` allowed in the parameters of `&mut self` methods, but not `&mut self`?
- Console-based Casino Game in C++
- Ubuntu gives the message "You are in emergency mode."
- Manga/manhwa where protagonist is the only one summoned to a different other world
- OId Movie about an alien city that plays a repeating melody
- Is there a smooth function approximating the minimum of a constant and a variable?
- Is a Rakshasa Immune to True Strike?
- What does this "lightbulb-ish" symbol mean in figure 1 of the Diffie Hellmann paper?
- Sum of ranks of blocks