Programming & Scripting
Programming & Scripting
How to detect a mobile device in jQuery?
You can use this script to detect the screen size as you want
CSS media query to target iOS devices or Android devices
after many result on google , i found the best way to add custom CSS scripts to target IOS or Android devices, please try the below CSS code
@supports (-webkit-overflow-scrolling: touch) {
/* CSS specific to iOS devices */
}
@supports not (-webkit-overflow-scrolling: touch) {
/* CSS for other than iOS devices */
}
Show all PHP errors
The quickest way to display all php errors and warnings is to add these lines to your PHP code file:
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);