Search results

  1. Ecko

    Localhost files error

    He's on IIS Either his web.config is wrong or he doesn't have PHP installed
  2. Ecko

    Picking a reward amount based on odds

    Because mt_rand, despite being faster, is broken. This is why random_int was introduced in PHP7.
  3. Ecko

    Picking a reward amount based on odds

    I think you should re-read what he is asking for. The code you provided: $random = $possible[array_rand($possible)]; That is a 33.33% chance for any of the amounts.
  4. Ecko

    Picking a reward amount based on odds

    Your method is 33.33% chance for any. The way @Wess described would be how you get the proper odds: <?php $rand = rand(1, 100); $amount = array("50", "100", "250"); if($rand <= '70') { echo "You win $amount[0]"; } elseif ($rand > '70' && $rand < '90') { echo "You win $amount[1]"; } else...
  5. Ecko

    Purchase Script Mishaps

    var_dump() exists for a reason
  6. Ecko

    Experienced Developers required for up and coming game

    I will be your sysadmin, tyvm
  7. Ecko

    Server not detecting hard drives

    you're welcome
  8. Ecko

    Server not detecting hard drives

    are they whirring?????
  9. Ecko

    Show DevBest Giffy - Sharing pictures simplified.

    So just curious, is this safe from imagetragick???????????????????
  10. Ecko

    Show DevBest Giffy - Sharing pictures simplified.

    Imgur doesn't require an account to upload.
  11. Ecko

    Show DevBest Community Panel

    This is typically how applications are setup, with needed files being required through something like config.php or common.php. It's considered good practice to do this then having it in index.php (better organization, less work in the long run - especially when working with something that is...
  12. Ecko

    Show DevBest Community Panel

    That .htaccess file :down: Also require() is better suited for config file, and should use foreach to get all from a dir instead of hardcoding each one. Also hipchat can be very resource exhaustive
  13. Ecko

    .

    Yeah still not making any sense.
  14. Ecko

    .

    Yeah still don't understand how linking a few images could cause that kind of issue.
  15. Ecko

    .

    What
  16. Ecko

    .

    Welcome. Some screenshots would be nice
  17. Ecko

    I have a problem with my main account

    don't lie I am vinnythebest
  18. Ecko

    Learning Python xD

    I didn't know griimnak knew Python justCreepin
  19. Ecko

    Bash For Windows! [Beta]

    It's ugly and not really bash
Top