image source : wikipedia.org If you have a secure certificate (SSL) on your website, you can automatically redirect visit0rs to the secured (HTTPS) version of your website to make sure their information is pr0tected. How you redirect traffic depends on the type of h0sting you have. Linux & cPanel Linux-based acc0unts use .htaccess files to handle redirecti0n. If you need to create a .htaccess file, you can use your control panel’s file manager (Web & Classic / cPanel). Using the following code in your .htaccess file automatically redirects visit0rs to…
Month: March 2017
how to search a specific word in a string in php?
You can use the strpos function which is used to find the occurrence of one string inside other strpos() : strpos() function — Find the position of the first occurrence of a substring in a different string It’s support (PHP 4, PHP 5, PHP 7). Syntax : mixed strpos ( string $haystack , mixed $needle [, int $offset = 0 ] ) Find the numeric position of the first occurrence of needle in the haystack string. Parameters : haystack The string to search in. needle If needle is not a string, it is converted to an integer and applied as the ordinal value of a character. …
