Jump to content

boompa

Members
  • Posts

    305
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by boompa

  1. Something like this will shorten the code: for($i = 1; $i <=4; ++$i) { if (!isset($_POST['octet'.$i])) { // Deal with missing info as desired } } Might not be a bad idea to validate that all data is entered via JavaScript before allowing submission.
  2. To expand on redixx's excellent suggestion, try phpass.
  3. You don't encrypt passwords; you salt and hash them with the strongest hash available on your system. If SHA512 is available, use that. An example.
  4. Here's a link for you on the basics. You can either make the script executable and add a #!/path/to/php at the top of the file to enable you to do the following in the crontab: 0 * * * * /path/to/script 1>/file/to/log/stuff/to 2>&1 or instead add the path to PHP and the script to the command: 0 * * * * /path/to/php -f /path/to/script 1>/file/to/log/stuff/to 2>&1
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.