Can someone help with password_hash. I hade a simple test md5.php for PHP5.4. This server is migrating to PHP7 soon. What I have is this but when I upload it I get a server error. Am i missing some aguments in this?

![http://desmond-otoole.co.uk/PWD.jpg](https://)

    What I get is
    This page isn’t workingdesmond-otoole.co.uk is currently unable to handle this request.
    HTTP ERROR 500

      Firstly, it's much more user-friendly on these forums to just post any code here as text within [code]...[/code] tags.

      If you are testing this in your old 5.4 environment, that's likely the problem, since password_hash() was introduced in PHP 5.5. If that's not it, put in this code as the first thing after the opening PHP tag:

      <?php
      ini_set('display_errors', true);
      error_reporting(E_ALL);
      

        Okay but I can't inset code on this forum. This old 5.4 and I have been told off.

        otuatail but I can't inset code on this forum

        Hmm...odd...since I just inserted code in my previous reply using the [code]...[/code] tags as I suggested. 🤷

          otuatail That's for inline code. But you should have a backtick key on your keyboard so that you can type ```

            code I type in code and .code as other forums use this. I don't now how you managed to put that in your entry as when I manualy entered them, they both dissapeared.

              Write a Reply...