CARVIEW |
Select Language
HTTP/2 200
date: Fri, 25 Jul 2025 10:28:14 GMT
content-type: text/html; charset=utf-8
cf-ray: 964af825694b95be-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=66bc1d9a-1893-4f94-82ba-3566f5402fb7; expires=Sat, 25 Jul 2026 10:28:14 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: 04a25dcf-123a-429c-b885-cbaf45075775
x-worker-origin-response-time: 572000000
x-dns-prefetch-control: off
set-cookie: prov=66bc1d9a-1893-4f94-82ba-3566f5402fb7; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=5C3MH.i0EHdKBAETrc.BJASs.IhX.cf3XKNjk7.4KRw-1753439294-1.0.1.1-1l_m3Ca97S7n1ftsENi7tOObKqkfc1CIgfYXYZaTPCV.Nc0YCz3z0Wa_eF9XyRNthnpacNMkf5IOSyJmAq3BA3oc8tsQ_yIFXubhocbczM4; path=/; expires=Fri, 25-Jul-25 10:58:14 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=MbYoRjJ5e_l7rK0GlyTZr.lm_PV7SyDvgb01dUXgq9k-1753439294896-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
- Are classified documents subject to a subpoena in discovery?
- Make a Mulenère encryption program
- Word order for a phrase with a number, adjective and noun
- What Isp can be gotten from a napthalene (mothball) hot gas thruster? Did it work in space?
- How do mechanical gyros maintain rotational speed?
- spots / stains on tubeless tire
- Distribution of a dot product of multinomial variables
- What *IS* switch bounce REALLY? According to evidence
- Can I place between subject variables as random slopes?
- When did the OEIS get even better?
- Can one engage with physics (or science) without touching philosophy?
- Have philosophers ever defined a notion of "luck" or "surprise" that is separate from probability?
- Mars colony book I read in the 80's. The name?
- Why does contact with the ground make my touch-activated LED brighter?
- Do standing sound waves sound different?
- How to 'scale' a square list?
- Interaction with para hooks and footnotes
- What does the expression 人としてアレだと、あれだった really mean?
- Maximum eigenvalue of the hermitian part of a matrix
- Anonymizing a submission for double-blind review
- Expected Sum of Remaining Dice After Removing Complete Sets
- Is the surface of Mars or the Moon mostly (or relatively) homogeneous, unlike the Earth?
- Using homothety to prove cyclic quads
- Are you required to protect trade secrets revealed to you even if you didn't sign an NDA?