1,464,412 questions
0
votes
0
answers
26
views
Varnish Error 503 VCL failed when url path ends with %
My website gives a Error 503 VCL failed when url ends with %
I have tried to disable cache, and also tried redirect, in .htaccess but without success.
Here's my current .htaccess-configuration:
<...
2
votes
3
answers
104
views
Unable to execute shell_exec [closed]
I have a website that, since 2020, sends a confirmation email to new users upon registration.
In 2025, I created an Android app that also registers users. It was able to send the email automatically ...
-1
votes
0
answers
50
views
Cannot use php-cs-fixer with onSave and VScode : Failed to read file "composer.json"
I have been desperately trying for many hours to use php-cs-fixer with VSCode, specifically for formatting on save. I have meticulously followed the documentation (https://github.com/PHP-CS-Fixer/PHP-...
0
votes
0
answers
49
views
Woocommerce checkout hooks lifecycle with external API call for custom shipping rates
Ok I finally got all my code partially working. It only works in some specific scenarios, which I don't fully understand yet. I think the lifecycle of the checkout is not 100% clear to me. I'll ...
-5
votes
0
answers
82
views
How to send a date from a CSV to a MySQL DB (datetime_immutable) in Symfony?
I try to send a CSV with this command in Symfony:
protected function execute(InputInterface $input,OutputInterface $output): int
{
$io = new SymfonyStyle($input, $output);
$io->...
0
votes
0
answers
112
views
Extensions are not available for additional PHP version in Wampserver
I have Wampserver running on Windows 11 with a PHP/MySQL web site running fine in PHP 7.4.26.
I had to install PHP 7.1.33 for comparative testing purposes. Under 7.1, the site isn't working at all.
...
-1
votes
0
answers
64
views
Laravel command works locally but not on cPanel: “No commands defined in the 'leaves' namespace” [closed]
I deployed my Laravel application to cPanel. On my local environment, running:
php artisan leaves:credit-monthly
works perfectly.
I then set up a cron job in cPanel to run this command, but I get the ...
1
vote
2
answers
99
views
imap_utf8 not always converting utf-8 text
I have the following simple script, running under PHP 8.3.6
<?php
$original = '"=?utf-8?Q?part1=40part2.com?=" <[email protected]>' ;
$converted = imap_utf8($original) ;
printf("...
0
votes
0
answers
97
views
apache subrequests and POST data [closed]
I am using apache reverse proxy to access esp32 devices. Before redirect, users are authenticated with "AuthType Basic". It is very simple authentication, for example, users cannot save ...
-3
votes
0
answers
50
views
Search not working with Date filter and Pagination [duplicate]
I am working on an e-commerce web project using vanilla PHP, HTML, and Bootstrap CSS. I have implemented both an admin panel and client/user side. However, I’m facing an issue in the orders.php file, ...
1
vote
1
answer
98
views
How to remove outdated files and empty directories for garbage collection
I'm tweaking a garbage collector class whose job is to iterate through a disk cache of files in subdirs, find any that are "out of date" and remove them. Further, if it finds any empty ...
2
votes
1
answer
124
views
Laravel validation for file not empty but less then 1 kb?
How to validate that uploaded file is not empty in case it is less then 1kb?
$request->validate([
'file' => [
'required',
'file',
'extensions:zip',
'max:1024',
'min:1'
]
]...
-3
votes
0
answers
140
views
PHP IMAP with no SSL hangs after connect [closed]
I am trying to setup up PHP IMAP for the first time. I have the following script as a sarter:
$mailbox = '{oxmail.myprovider.com:993/imap}INBOX' ;
$user = '[email protected]' ;
$password = '...
0
votes
2
answers
134
views
Can I use lazy loading with factories?
I have a project which automatically sets up dependency bindings (using PHP-DI) for various database connections based on datasources defined in a configuration file:
// In reality this is loaded from ...
0
votes
0
answers
74
views
Symfony does not register any application routes (Attribute routing) – only profiler routes appear
I am migrating a legacy PHP application (100% file-based) to Symfony and using Symfony only as a front controller. The Symfony application boots correctly, but none of my application routes are ever ...