Jump to content
Larry Ullman's Book Forums

Hashing With Earlier Version Of Php


Recommended Posts

  • 3 weeks later...

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

 Share

×
×
  • Create New...