1,463,200 questions
-4
votes
0
answers
52
views
PHP 8.3 quirk with self:: usage in constructor? [closed]
I have this code block:
class ExampleService extends BaseService
{
protected $handler;
public const TASK_ONE = 'task_one';
public const TASK_TWO = 'task_two';
public function ...
1
vote
0
answers
39
views
Partial.ly API adding application_fee to Stripe PaymentIntent when using direct API Key (not OAuth)
Problem
I am building a custom WooCommerce plugin that integrates with the Partial.ly
API to create installment payment plans. I am following the official Partial.ly
documentation for creating a ...
Best practices
1
vote
4
replies
90
views
Why does my website randomly show a server error?
I am working on a travel booking website. It is working fine most of the time, but sometimes it suddenly shows a “We had a server error” message without any clear pattern.
This issue is not constant, ...
Advice
1
vote
10
replies
139
views
I would like to get some advice on this sql connenction with php. We use this in our school. Can you guys help if there is a better way to do it?
So this is the connection file. This is what we are using but my classmate said its not the best and not the safest but i want to use the structure of it.
<?php
function getData($muvelet, $...
-4
votes
0
answers
68
views
Program only works from one location in filesystem [duplicate]
Please can someone suggest why my PHP program will not work when I move the folder containing it to a different place in the filesystem?
It uses HTML forms to extract data and insert it into a ...
-2
votes
0
answers
80
views
Custom HTML and CSS not rendering correctly when adding PHP snippet to wp_footer in WordPress [closed]
I am trying to add a custom promotional banner to my WordPress site. My goal is to output this HTML and CSS using a PHP function hooked to wp_footer so it appears consistently across all pages.
Here ...
Advice
1
vote
4
replies
79
views
Automatic image file type sorter, with automatic menu creation php
I’m currently working on a personal project that I’m really passionate about. My long-term goal is to scale it into something bigger, but right now, I’m in the thick of the early development stages.
...
Advice
2
votes
15
replies
165
views
Practical tips for coding
I’m pretty much just getting started with coding and web development. To be honest, I’m not too bad at HTML and CSS, but I’m really struggling with dynamic web projects—I’m having a hard time using ...
Tooling
0
votes
22
replies
160
views
Which services are typically required to scale a LAMP stack for high-traffic production environments?
I am designing a LAMP-based application (Linux, Apache, MySQL, PHP) expected to handle increasing concurrent traffic (e.g., thousands of requests per minute).
From research and feedback, it seems that ...
Advice
1
vote
3
replies
112
views
Show a PDF icon instead of image in a gallery
I am building a simple PHP gallery that dynamically scans folders and displays images. Currently, the script works well for standard image formats like JPG, PNG, and GIF. However, I want to extend ...
0
votes
0
answers
81
views
How to optimize Laravel Eloquent relationships for large datasets? [closed]
I am currently building a restaurant booking system using Laravel. I need to fetch table reservations for the upcoming 7 days, which involves thousands of records.
Currently, I am using this approach:
...
1
vote
0
answers
80
views
Statamic text field - Markdown support? [closed]
I’ve recently been working with the Statamic Laravel framework, and I noticed that the text field type seems to accept Markdown or HTML-like tags. It’s behaving like a Markdown field type, which made ...
-3
votes
0
answers
30
views
404 Error: Page Not Found even though file exists on server [duplicate]
actually I have my site hosted on wordpress. The problem while accessing a form on the site it shows error 404 page. The form is inside public_html/sample/basic and named as uploader.html and uses ...
0
votes
2
answers
143
views
HTML <img> not rendering in mPDF on live server, but $mpdf->Image() works
I'm facing an issue with mPDF where HTML <img> tags are not rendering on my live server, but they work perfectly on localhost.
What works:
Using direct mPDF method:
$mpdf->Image('https://...
Tooling
1
vote
10
replies
199
views
New web trends for a dental system
I'm currently developing a website for a dental clinic where users can schedule and track their appointments, and the doctor will maintain all records online. The entire project is being built using ...