PHP
How to Https to http redirect using htaccess
How access localhost url in HTTPS and globally Internet
Suppose that you are creating an app for social login like Facebook login. Then you will need HTTPS URL.Suppose that you are a design or developer and you are working on a site. And that site is completely built. Now you have to test that site on mobile without going live on the server.
PHP 7.4 – Null coalescing assignment operator
PHP 7.4 introduced a new Zero Coalesce Assignment Operator?? (=). This is used in combination with isset() method to replace the ternary operation. This operator is used for assigning its right-hand operand value to its left-hand operand only if the left-hand operand value is null.
How to Create Custom Helper in CodeIgniter?
I’ll share how you can build custom helpers in your CodeIgniter app. Helpers, as the name suggests, assist with tasks. CodeIgniter helpers file is a compilation of functions in a particular category. The helpers functions in your controllers and views are used to prevent repetitive code and they are located in the directory Machine/Helpers.
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
How to remove a string from the beginning of a string
I will share with you how to delete a string from the beginning of a list. Method substr) (extracts parts of a string starting at the given position and returns the specified number of characters
How to Change Date Format in PHP
It is very common that people would change dates in their projects. People want to change the date in different formats.Now i am share to how to change date format in php. You can change the date-time using strtotime () and date() function.
How to highlight the keyword in the string and search result using php
Now i am showing how to highlight keyword in content. User type keyword and highlight keyword in string. In php function you can easily highlight matched word as full keyword in search result
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