Skip to main content

Questions tagged [php]

PHP is a widely-used, general-purpose scripting language that is especially suited for web development.

7 votes
3 answers
807 views

Why I made it I wrote this script for one simple purpose: to Rickroll my friends. How it works This is the workflow: It fetches a .png frame from a PHP endpoint on a website I own. The frame number ...
Chip01's user avatar
  • 687
2 votes
1 answer
116 views

I have made a Laravel 8 blogging application that supports themes. I had made a custom 404 template for every theme, the path to it being ...
Razvan Zamfir's user avatar
7 votes
4 answers
656 views

I'm a hobby coder at best. I know enough to make helpful programs to assist me with day to day life and work (mostly with PHP/JS, some C#). I'm wanting to learn more about good coding practices. I ...
Aethar's user avatar
  • 71
3 votes
2 answers
165 views

I’ve built a backend-only wallet service using Laravel 8, and it’s fully containerized with Docker. The project handles two user roles (Players and Backoffice Agents) and provides JWT-based ...
Şirin Berhuş's user avatar
2 votes
1 answer
89 views

I’m working with a MySQL database that models product compositions and raw materials. There are two relevant tables with columns as shown: product_recipes: ...
Boom's user avatar
  • 121
5 votes
2 answers
244 views

I’m developing a Laravel app which acts as a client to consume a 3rd party Strava API. My app also functions as an API for a frontend SPA. The user (which is just me for the time being) will already ...
ah5's user avatar
  • 51
3 votes
1 answer
186 views

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 ...
nischalinn's user avatar
6 votes
3 answers
550 views

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 ...
Sing O Song's user avatar
3 votes
1 answer
236 views

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,...
Razvan Zamfir's user avatar
3 votes
1 answer
99 views

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 ...
Your Common Sense's user avatar
2 votes
2 answers
183 views

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 ...
Benzio's user avatar
  • 131
3 votes
1 answer
71 views

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, ...
live627's user avatar
  • 131
4 votes
2 answers
499 views

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 ...
Cory Green's user avatar
3 votes
1 answer
69 views

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 ...
Pavel Drow's user avatar
4 votes
1 answer
176 views

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? ...
the_humble_asker's user avatar

15 30 50 per page
1
2 3 4 5
285