ARTICLES POSTED IN THE " PHP Tips" CATEGORY

  • Php encrypt and decrypt

    Php encrypt and decrypt

    This article will give information about php “encryption” and “decryption”. When we send information from one page to another page via “URL”, Anyone can see what we are sending in url. To avoid that, […]


  • How to Enable .htaccess in WAMP Server

    How to Enable .htaccess in WAMP Server

    To Enable .htaccess in WAMP Server use the following steps STEP  1:  click on Wampserver and select apache->httpd.conf STEP  2: Find and replace the following text Find      #LoadModule rewrite_module modules/mod_rewrite.so Replace   LoadModule […]


  • Download File Using Php

    Download File Using Php

    I added the code to download the file using php. When we apply this concept, dont need to give the file dirctory to user. <?php function downloadfile($filepath){ if(file_exists($filepath)){ // Change it based on file […]


  • Password Validation in php

    Password Validation in php

    <?php if (!preg_match('~^[a-z0-9]*[0-9][a-z0-9]*$~i',$password)) { // $subject is alphanumeric and contains at least 1 number $passworderror="Please enter password with digits"; } ?>



  • PHP RANDOM PASSWORD

    PHP RANDOM PASSWORD

    <?php $length = 10; $chars = array_merge(range(0,9), range('a','z'), range('A','Z')); shuffle($chars); $password = implode(array_slice($chars, 0, $length)); echo $password; ?>


  • Password Generator In PHP

    Password Generator In PHP

    Password Generator In PHP. We can generate dynamic password with numeric, alphanumer etc using php. I created dynamic_password function. It will generate and return the dynamic password. You should have to send password type, […]