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.
1,466,739
questions
0
votes
0
answers
3
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
6
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 ...
0
votes
1
answer
12
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
8
views
PHP varible 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="...
-1
votes
0
answers
14
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
18
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
7
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
8
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
12
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
21
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
16
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 ...
0
votes
1
answer
32
views
Display an Alert When User Session Expires in Laravel
I am using the Laravel framework and would like to create an alert when the session expires. I tried implementing a JavaScript code that checks if the user is logged in every three seconds as follows:
...
0
votes
0
answers
13
views
IMAP Error: EXPUNGE not allowed in session state when creating folder in Laravel
When trying to use the EXPUNGE command after creating folders with the IMAP server, we receive the following error:
BAD [ALERT] i.<unique_id> EXPUNGE not allowed in session state
The EXPUNGE ...
0
votes
0
answers
12
views
Filtering by Custom Taxonomy and Meta Fields in WordPress Produces Inconsistent Results
I'm building a custom WordPress theme for a job listing site, and I'm encountering an issue with filtering job listings. My site has custom post types and taxonomies for job categories and job types.
...