How to Display Alert Message Box in PHP?

The alert box can used for show special message. If you want to show a message after any event like warning message, success message or other any messages. you can use alert box. PHP does not have the ability to display an alert message box because it is a server-side language, but to display an alert message box you can use the javascript code within the PHP file. Given below give some code you can use and display a Javascript alert message box in PHP

Continue reading


How to detect mobile device and redirect to mobile version of your website in php

When you have built your website and computer’s mobile edition (desktop / laptop). You’ll need to make sure that your mobile visitors are routed to your mobile website. For example, if you’ve built 2 web site w3-html.com and mobile site m.w3-html.com. If anyone visits w3-hmtl.com on their mobile phone, a way to redirect them to m.w3-html.com is needed. You can follow below example to you redirect to mobile site

Continue reading