CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   PHP (http://www.codingforums.com/forumdisplay.php?f=6)
-   -   Parse error: syntax error, unexpected 'print' (T_PRINT) (http://www.codingforums.com/showthread.php?t=286614)

amcf1992 01-29-2013 07:23 AM

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;

?>


LearningCoder 01-29-2013 08:42 AM

You missed a semi-colon after the sha1 function. Change it to this:
PHP Code:

$encryptsha1(md5($salt.$password)); 

Kind regards,

LC.


All times are GMT +1. The time now is 02:43 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.