Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 11/21/2018 in all areas

  1. 1 point
    This reminds me of whatever reason of this scene: https://www.youtube.com/watch?v=G67eMq1YwmI Like Occam tried to explain, often the simple answer is correct. If a function is not defined in your environment, and it was introduced in a certain version, and you assume you're using that version, then your assumption is probably wrong. It's not a question of other code doing something mysterious, it's just the wrong version. And, like you've learned, don't assume that something you see in one environment (a console shell) is the same as in another environment (a web server).
  2. 1 point
    The error message you showed earlier "Call to undefined function random_bytes()" is an indication that the code was not running on a server with PHP 7. Can you show me the file where those syntax errors are? They're not in the initial code you posted.
×