Ever since i upgraded my PC last year, my Windows 10 pc will not go to sleep and neither will the monitor and that’s with a fresh Windows 10 installation. The first thing i did was to press the “Restore default settings for this plan”..didnt work.
I’m really finding it hard to figure out how this is a problem when with my old hardware it was never a problem. The only thing i cant think off is that its the motherboard and some setting in BIOS thats not quite right.
This problem has been happening since i installed the new hardware and for some reason i thought it was normal..but remembered how my old PC would behave it would just go to sleep when the windows 10 power settings told it too.
Hardware Specs: MSI B 450-A PRO (latest BIOS) AMD Ryzen 2600 Win 10 64 210h (latest) 32GB DDR 4 3000
USB Controller/Joystick being plugged in.
Solution: After reading about the same problem being caused by a controller being plugged in, I disconnected the Joystick from my PC and within one min the screen had gone off.
While Xampp with PHP7 is great there are times when you need PHP5 for an old project. I found this great article on medium the other day on how to have two different PHP versions and one Xampp installation. The alternative is a pain as running two Xampp versions is just too much hassle.
The below article allows you to setup xampp to use PHP 5 and 7 when ever you want. So for normal projects you would use the address’s below, basically it makes xammp listen on port 8888 (or whatever u want) for requests and then uses PHP5 to interpret/compile any Php5 code.