Questions tagged [php]
PHP is an open-source, multi-paradigm, dynamically-typed, and interpreted scripting language designed initially for server-side web development. Use this tag for questions about programming in the PHP language.
300
questions
0
votes
0
answers
5
views
Connect PHPStorm debugger to xdebug with Warden
I'm getting an old Magento 1 project up and running, and am hitting issues getting the debugger working. Everything is run on Docker, using Warden to manage the different containers. I've followed the ...
0
votes
0
answers
11
views
Is there a way to tell WordPress to use a page theme as the styling of the login page?
I am needing to make a custom login page for my website but need things that are just unavailable (or not available for free) from any of the login page customization plugins. I have created a page ...
0
votes
2
answers
27
views
Display logged in user information
I have got a basic registration and login forms and when the user registers then their information is sent to the database and when the user uses the same username and password then they can login ...
0
votes
0
answers
8
views
Uploading from OneDrive/Sharepoint in Laravel App
I'm looking for a solution to allow users to authenticate then upload files from their Sharepoint/OneDrive to S3 within a Laravel application. Has anyone been able to accomplish this before?
I've only ...
0
votes
0
answers
12
views
How to create coupon/paywall in an Elementor Pro page for FREE
Hi there masters good day! Is it possible to create a page with a coupon code form, then the selected visitors need to enter the valid coupon code I emailed to them, and if the coupon code they ...
1
vote
2
answers
28
views
PHP HTML JS pagination
I have a page which feedbacks which looks like this (I just show 1 comment per page to see if the pagination works fine. Otherwise I'll show more):
The feedbacks come from a mysql database and are ...
0
votes
2
answers
17
views
PHP variable from mysql query in form, when null
I have an html form used to edit a record in a mysql table.
In the case of editing, I prefill the form with the current values for the record as returned by the query, as below:
<INPUT TYPE="...
-2
votes
0
answers
15
views
comment résoudre le problème de memoire limité de laravel [closed]
PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 360448 bytes) in D:\ibetaservice\vendor\laravel\framework\src\Illuminate\View\Engines\PhpEngine.php on line 52
...
-3
votes
1
answer
21
views
Laravel maintenence mode timestamp?
Does anyone know an easy way to get a timestamp of when your laravel app is put into maintenance mode? I want to display a message on my view which says "last updated xxxxx"
0
votes
0
answers
8
views
Error with Doctrine ORM attribute after converting code from annotation
I am upgrading from PHP7 to PHP8, ran my doctrine entities through Rector to update the annotations to attributes. I'm getting the following error that I cannot get past:
Attribute "Doctrine\ORM\...
0
votes
0
answers
14
views
How to sort WooCommerce variable products from max variation price in a custom query
I am trying to sort WooCommerce variable products from maximum variation price (my website contains simple and variable products).
My custom query below is sorting products by price, but the issue is ...
0
votes
0
answers
14
views
How to allow customers to update their sales channel in admin interface in a Shopware 6 plugin?
I'm working on an e-commerce platform where customers are assigned to sales channels. Currently, this information is stored in the database, but can only be updated through direct database queries. I ...
-3
votes
1
answer
33
views
Including navbars using Php [duplicate]
I've been working on my first ever fully fledged web project to try and learn php, and after copying and pasting my top navbar into the 15-ish pages that I have and the styling for it into the 15ish ...
-1
votes
0
answers
22
views
Laravel is not rendering pages and is way too slow, literally unusable [closed]
I am trying to deploy a laravel app to a ubuntu server, i have installed php, composer, mysql, and apache. I upload the files to /var/www/html and set up the database, but the pages are not loading at ...
0
votes
0
answers
18
views
woocommerce_cart_item_price doesn't update mini cart subtotal
I am adding an array of free gift products to the cart when certain conditions are met. I have used woocommerce_cart_item_price to set the price of the products in the mini cart. However, it is adding ...