CARVIEW |
Select Language
HTTP/2 200
date: Fri, 25 Jul 2025 07:18:01 GMT
content-type: text/html; charset=utf-8
cf-ray: 9649e17e0a37c1c9-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=97492766-cffe-4e84-88e7-9aa4f39fda6d; expires=Sat, 25 Jul 2026 07:18:00 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: 2db15ad0-b1c2-4251-a932-684830ae9994
x-worker-origin-response-time: 552000000
x-dns-prefetch-control: off
set-cookie: prov=97492766-cffe-4e84-88e7-9aa4f39fda6d; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=tNg76hLbbVxOAk5Du_4VnyCCdfcjsIfCM8r2TbtowBw-1753427881-1.0.1.1-YUSBCYQkFjceUgrFNgBplWsAdI28NNDN.4NITl9WIGgqy8g_ESzunSeeelE4BYniHC1qFYs2ZjNEr7VMK_7LAxuow57SinuLLELTh5gb2Qg; path=/; expires=Fri, 25-Jul-25 07:48:01 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=7iRDJmx_bm1Solj9J8ETkFuhH7yovf3hR8oeaNtidxE-1753427881215-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
491
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
473
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
- How can I allow a contact to update their organisation using FormBuilder?
- Where did the name of Windows XP come from? Was it connected to the Cairo project?
- spots / stains on tubeless tire
- Why is Shunt Voltage Reference (LM4040DBZ-3) Not outputting a stable 3V supply
- Is the surface of Mars or the Moon mostly (or relatively) homogeneous, unlike the Earth?
- Does Philosophy Need Quotes?
- Write two very different programs with the same characters
- Is there a way to retrieve my inventory from the void in Minecraft Java Edition?
- Mars colony book I read in the 80's. The name?
- Can a humanoid that fell supine and is then Levitated alter his orientation?
- Can one engage with physics (or science) without touching philosophy?
- OId Movie about an alien city that plays a repeating melody
- A complex polynomial inequality
- Etymology of the word skulduggery?
- Huge Difference in Interaction P-values Between Linear vs. Ordinal Regression (0.991 vs. 0.001)
- A question about as ..... as comparison
- How do mechanical gyros maintain rotational speed?
- Did Germany declare the Donetsk People’s Republic to be a terrorist organization, at some point?
- Can authors be blacklisted by academic publishers for multiple rejections without any ethical misconduct?
- Anonymizing a submission for double-blind review
- When and why is fwait necessary when using the 8087 coprocessor?
- Early 70s scifi novel about underground people, caste is determined by the color of your poncho, and everyone eats mouldy grain
- Was Hermann Ganswindt's helicopter actually the first manned heavier-than-air motor-powered flight?
- What does "Store Name" mean on the Tokyo-Narita Airport Bus timetable?