Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unexpected (T_VARIABLE) error #9

Closed
bens545 opened this issue Mar 2, 2013 · 3 comments
Closed

unexpected (T_VARIABLE) error #9

bens545 opened this issue Mar 2, 2013 · 3 comments

Comments

@bens545
Copy link

bens545 commented Mar 2, 2013

I have a file that contains the following to test the script and make sure it will hash the password and that it is not a fault somewhere else.

<?php
require_once "/home/benj545.ath.cx/bocsy/assets/PasswordLib/bootstrap.php";

$password = "password"
$crypt = new PasswordLib\PasswordLib;
$hash = $crypt->createPasswordHash($password, '$a2$'); // Blowfish
echo $hash;

Although when I try to run this script I get the following error which does not occur when I am running on my local machine although happens on my webserver. My webserver is running PHP version 5.4.12 and my localhost is running PHP 5.3.9

PHP Parse error:  syntax error, unexpected '$crypt' (T_VARIABLE) in /home/benj545.ath.cx/bocsy/test.php on line 5
@mfrost503
Copy link

I'm going to go out on a limb here and say that you're missing a semi-colon after password :)

@jpetazzo
Copy link

jpetazzo commented Mar 2, 2013

Ditto

@bens545
Copy link
Author

bens545 commented Mar 2, 2013

Oh, I hate it when it is something as simple as that. Anyway, thanks for looking at it.

@bens545 bens545 closed this as completed Mar 2, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants