Category: PHP

simple encryption and decryption in php 0

simple encryption and decryption in php

mcrypt_encrypt — Encrypts plaintext with given parameters, Try the following example. Assign your own secret key $salt. Encryption Method ———————– $salt = "Secret Key";       function simple_encrypt($string)     {    ...

php-encryption-decryption- siddiq 0

encryption and decryption using PHP

mcrypt_encrypt — Encrypts plaintext with given parameters, Try the following example $string = "String to be encrypted"; $secret_key = "Secret key"; // Create the initialization vector for added security. $iv = mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND);...

mobile site redirection - siddiqBlog 0

mobile site redirection

Use the following code in htaccess file for redirection Note: Replace webdmomain with your website name and mobdomain with your mobile site name RewriteEngine on RewriteBase / # Check if this is the noredirect...

redirect sub folder to subdomain 0

redirect sub folder to subdomain

Use the following code in htaccess file for redirection Note: Replace demo with your folder name and domain with your domain name RewriteEngine On RewriteCond %{REQUEST_URI} ^/demo/(.*)$ RewriteRule .* http://demo.domain.com/%1 [R]