Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-29-2013, 07:23 AM   PM User | #1
amcf1992
Regular Coder

 
Join Date: Jul 2011
Posts: 114
Thanks: 7
Thanked 0 Times in 0 Posts
amcf1992 is an unknown quantity at this point
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;

?>
amcf1992 is offline   Reply With Quote
Old 01-29-2013, 08:42 AM   PM User | #2
LearningCoder
Regular Coder

 
LearningCoder's Avatar
 
Join Date: Jan 2011
Location: The Pleiades
Posts: 848
Thanks: 67
Thanked 28 Times in 28 Posts
LearningCoder is an unknown quantity at this point
You missed a semi-colon after the sha1 function. Change it to this:
PHP Code:
$encryptsha1(md5($salt.$password)); 
Kind regards,

LC.
LearningCoder is offline   Reply With Quote
Reply

Bookmarks

Tags
encryption, php

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:31 AM.


Advertisement
Log in to turn off these ads.