Skip to content

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 …

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…