This script is adding a fee if the product is in a particular category. The script is working but only for one cart item. But if there are 2 or more items it wil not multiply in the cart. What am I …
Why using DOMDocument makes site load slower?
I’m using DOMDocument with xpath to load some data to my site from external (fast) website. Right now I use 4 urls (please see below). I need to increase to 8 urls. What I have noticed, that the more of those you add, the more slower the site loads. Is there any way to use xpath for more faster load?
broken imgs in theme wordpress 5.7
Actually, i have a personaliced theme in wordpress 5.7, that in localhost it´s ok. But i´m using plugin “backup migration” to upload all my changes in locahost to my hosting… But now, i´m …
PHP Regular Expression validation to allow only upto 1-5 dots in a Email-ID/string [closed]
Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 1 year ago. Improve this question In PHP…
PHP/Laravel date based ID – how to make it waterproof?
I want to create a date based ticket ID for my Laravel system, like: 2103 0001 2103 0002 2103 0003 And then next month: 2104 0001 2104 0002 2104 0003 I’ve getted it working using this: $date = …
laravel 8 – auth()->factory() { same refresh() and attemp() } is undefind in JWT AuthController
i use JWT for API authentication in laravel 8. when i use auth()-> in my controller , for factory() or attemp() or anything , laravel does not know it and says : Undefined method ‘attempt’….
Conditional unset from Guzzle response
I’ve seen a few questions and the ones worth referencing How can i delete object from json file with PHP based on ID How do you remove an array element in a foreach loop? How to delete object from array inside foreach loop? Unset not working in multiple foreach statements (PHP) The last two from the lis…
Laravel is not working with require laravel/ui
On executing composer require laravel/ui I am getting below problems Using version ^3.2 for laravel/ui ./composer.json has been updated Running composer update laravel/ui Loading composer …
$_SESSION problem – I have same ID on all
I don’t know, how I do this: I want to add $id from database to $_SESSION[“dbID”] and after click, it shows me more information from database. But table generates in while function and $_SESSION[“dbID”] every time set to the highest number of row from table. Please, Can you anyone chan…
Showing duplicate keys in associative array in PHP
I have an array of numbers: [Note: $arrNum is dynamic. It’s created using rand(). So every time the values will be different. It’s not fixed values.] Now there’ll will be an associative array named $arrNumDouble. The key of $arrNumDouble is the value of $arrNum and the value corresponding to…