Jump to content

burgo855

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Everything posted by burgo855

  1. Must be something running in the background that alters it with the new host. Ill have to ask them. I had the random number like that because i guess i made this script when learning php... Thanks.
  2. Hi, Hopefully i can get some help on this. Basically i have made a script that generates a pin. But since using a new webhost half of the script doesn't seem to work. Its only generating the first three parts: <?php header("Content-Type: application/force-download"); header("Content-Disposition:attachment;filename=pin"); header("Content-Length: 28"); echo '0000001002' . date("Ymd") .("0011") .randomNumber(06); function randomNumber($length) { $str = ''; for ($i=0; $i < $length; $i++) { $str .= rand(0,9); } return $str; } The random 6 numbers do not seem to generate? Does anyone know why this new host is making the scripts random number generation fail? Thanks.
×
×
  • 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.