CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 00:32:30 GMT
content-type: text/html; charset=utf-8
cf-ray: 96580a3bad82f424-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=15d3c06f-fee5-40d0-a9f5-179f84b5fc11; expires=Mon, 27 Jul 2026 00:32:30 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: acaef379-170b-4a8a-957e-6d4920e12404
x-worker-origin-response-time: 580000000
x-dns-prefetch-control: off
set-cookie: prov=15d3c06f-fee5-40d0-a9f5-179f84b5fc11; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=MIv8Vbli5z0GlYw3oiN.7515XFsK44wqb6xbbgwThCU-1753576350-1.0.1.1-rg2haAy7BCGT4R2n19Vu6rrQ5RAZRT7Ktg6nbvHMrM.wPntExzv2rHRLMdElxfth8ehzNYkJGecFvU2kwARgo0Jcaq.sacHFvhB1TbzP1bo; path=/; expires=Sun, 27-Jul-25 01:02:30 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=.Da5Cd26lQYaY1I6yzcEiedVcdWw9VKjZ90T07lKFXk-1753576350616-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
157
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
492
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
474
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
150
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
- Is it okay to email researchers if I’m just a high school student?
- Is there any verse which says that throughout the Vedas the praise of Shiva is sung?
- Mars colony book I read in the 80's. The name?
- Will a reinforced 1" concrete slab be durable?
- Meaning of 芭蕉 in Tang age
- In Fantastic Four 2025 shouldn't this thing have taken years?
- I don't have enough alive employees to start the day. What now?
- How to extend an MDF shelf?
- Why are police personnel of all ranks called officers?
- Likelihood of the data in a Ornstein-Uhlenbeck-like process
- A question about as ..... as comparison
- Why is 0.0 printed as 0.00001 when rounding upward?
- What does it mean to "cancel" a command in the linux kernel and how can one do so?
- About security concerns using in find -exec vs interactively performing the same task
- Humans on alien planet get tailed by silent humanoids
- Is there such a thing as 'aerospace grade software'?
- Heavy shelves, but not a center stud
- spots / stains on tubeless tire
- Word order for a phrase with a number, adjective and noun
- What does this word "ahn-shdah-heh" mean?
- “Unclear step in a math book for entertainment”
- How does one justify the rationality of buying insurance?
- Most practical way to determine concentration of reducing sugar in frozen French fries?
- Symbols for A.P. Morse's book in Set Theory