Skip to content
Advertisement

Tag: web-deployment

Interesting Question here – Why Tomorrow Date PHP and +1 Days Gives Different Time

Hello PHP DEV, I Want to know why this strange thing is happening! Example : strtotime(“+1 days”) returns time as UTC TIME which is current Time so why strtotime(‘tomorrow’) returns time as 00:00:00. I noticed this show wants to know the official reason behind this. Answer strtotime(“+1 days”) uses current time and adds a day strtotime(‘tomorrow’) returns tomorrow at midnight

Laravel could not find driver Cpanel

I deployed my Laravel project on Cpanel but there’s an error “could not find driver(SQL)” I’m using Mysql database in Cpanel, and I have checked pdo_mysql in PHP extension. but when I looked on phpinfo(); and find pdo_mysql, the result is 0/0 How to fix this? Thanks in advance Answer Thanks for your reply. The culprit is my PHP version

Advertisement