CARVIEW |
Select Language
HTTP/2 200
date: Thu, 24 Jul 2025 07:40:15 GMT
content-type: text/html; charset=utf-8
cf-ray: 9641c4adcd631ec2-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=facf48af-4ddd-415d-add4-563379074928; expires=Fri, 24 Jul 2026 07:40:15 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: 3bac72bf-30db-4fd4-95fb-5bed9ca67d54
x-worker-origin-response-time: 1034000000
x-dns-prefetch-control: off
set-cookie: prov=facf48af-4ddd-415d-add4-563379074928; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=YJa3lEafOjbjRRxxDp6274zQsiWQvVoh9Jm9VKkcJGo-1753342815-1.0.1.1-rmYIuL.vi.2r7N4iNq25kDW27WguH5bdSRPmgadUMVB1Wa4WZ2zIhMLn_4alxf8Ay8AVKKYHLcREgBrku2QlD_SCHJF_jf9.2Hkl5tL9_AA; path=/; expires=Thu, 24-Jul-25 08:10:15 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=_GsoCTw.MN7yIf1r0anNngBXjwPAWTCboMXpG8ZD65Y-1753342815411-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
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
- What was the Russia-Germany 1996 "Defence pact" that Russia recently announced has been terminated?
- What is that "T" in the pattern string of the date-command?
- When you view a historical event with an incorrect modern lens
- Are birth control pills classified as a carcinogenic at the same level as asbestos and tobacco?
- What does this "lightbulb-ish" symbol mean in figure 1 of the Diffie Hellmann paper?
- How do I rotate each set of instances towards the centre
- Did Germany declare the Donetsk People’s Republic to be a terrorist organization, at some point?
- Using a MCU and PCB to actuate a 24V solenoid
- What fiction genres do literary agents recognize?
- Where did the name of Windows XP come from? Was it connected to the Cairo project?
- OId Movie about an alien city that plays a repeating melody
- Is there a way to retrieve my inventory from the void in Minecraft Java Edition?
- Processing All Files [0-9]*tex
- How to show the Desktop and not the Activities Overview upon logging into Ubuntu 24.04?
- Business technical issues lead to unsuccessful payment being considered successful. Do I have any duty to notify?
- Is it legal for businesses to give financial incentives for leaving positive reviews on review sites (e.g., Google Maps, Yelp, Facebook, Amazon)?
- Is buying random stocks and then selling off the ones that go down a good way to reduce capital gains tax?
- Why does contact with the ground make my touch-activated LED brighter?
- Nontrivial bound for sum involving Möbius function and fractional parts
- Etymology of the word skulduggery?
- Make a Mulenère encryption program
- Ubuntu Server installation -- options for boot disks are grayed out
- Write two very different programs with the same characters
- Can authors be blacklisted by academic publishers for multiple rejections without any ethical misconduct?