Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jul 2011
    Posts
    140
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Parse error: syntax error, unexpected 'print' (T_PRINT)

    I'm trying out different salts to store passwords, but I'm getting an error

    Parse error: syntax error, unexpected 'print' (T_PRINT) in C:\xampp\htdocs\files\hash.php on line 6

    PHP Code:
    <?php
      $password
    "Pcmac123$";
      
    $salt="1B2BVC#";
      
    $encryptsha1(md5($salt.$password))
      
      print 
    $encrypt;

    ?>

  • #2
    Regular Coder LearningCoder's Avatar
    Join Date
    Jan 2011
    Location
    The Pleiades
    Posts
    918
    Thanks
    76
    Thanked 29 Times in 29 Posts
    You missed a semi-colon after the sha1 function. Change it to this:
    PHP Code:
    $encryptsha1(md5($salt.$password)); 
    Kind regards,

    LC.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •