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

PHP Error #1

Open
davidmcoleman opened this issue Aug 2, 2013 · 0 comments
Open

PHP Error #1

davidmcoleman opened this issue Aug 2, 2013 · 0 comments

Comments

@davidmcoleman
Copy link

My server is running PHP 5.2.17

I'm getting errors from these lines of code within index.php

define(IVSIZE, mcrypt_get_iv_size(MCRYPT_CAST_256, MCRYPT_MODE_CFB));
define(RANDOM_ID, bin2hex(mcrypt_create_iv(IVSIZE, MCRYPT_DEV_RANDOM)));
define(RANDOM, openssl_digest(RANDOM_ID.$phprand , 'sha512'));

Sample Error:

PHP Notice: Use of undefined constant IVSIZE - assumed 'IVSIZE' in
PHP Notice: Use of undefined constant RANDOM_ID

Q: Would upgrading to PHP 5.3 resolve these errors?

Thanks.

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

1 participant