erutledge Posted February 1, 2014 Share Posted February 1, 2014 i'm using php 5.3 at this time, and don't have an option to upgrade. what do you suggest as an alternative to password_has? thank you! Link to comment Share on other sites More sharing options...
HartleySan Posted February 1, 2014 Share Posted February 1, 2014 Copy the code at the following link into a file named password_hash.php, and include the file: https://github.com/ircmaxell/password_compat/blob/master/lib/password.php Link to comment Share on other sites More sharing options...
dbecker1948 Posted February 21, 2014 Share Posted February 21, 2014 I am using this book in a course at an university. I copied the password_hash.php and saved it to the includes folder. How do I include the file, I guess what I really mean is where do I include the file. I have tried the MySQL.ini.php. Link to comment Share on other sites More sharing options...
HartleySan Posted February 21, 2014 Share Posted February 21, 2014 You can include it however you want, but following the conventions that Larry uses in the book, you will likely have the PHP file at the base of your web directory, and then have the password_hash.php file in a directory called inc, which would also be in the base web directory. Assuming that structure, you would then include the password_hash.php file into your other PHP file as follows: <?php include('inc/password_hash.php'); It's literally that simple. And once you include a file, then you have access to all the code in that file as if you just copied and pasted all the code in that file into your other PHP script. That all make sense? Link to comment Share on other sites More sharing options...
Recommended Posts