Jump to content

genericnumber1

Members
  • Posts

    1,858
  • Joined

  • Last visited

    Never

About genericnumber1

  • Birthday 05/21/1988

Contact Methods

  • AIM
    ph34rmyp0w4h

Profile Information

  • Gender
    Not Telling

genericnumber1's Achievements

Member

Member (2/5)

0

Reputation

  1. You should try setting... output_buffering = Off and using sleep (so you can see the delay). That should hopefully do it. Edit: For setting the directive just for the one file, you would have to do it in .htaccess. The ini_set function can not modify output_buffering.
  2. You might check your PHP.ini for the output_buffering setting. Make sure that is disabled. Also make sure you're not using any other output buffers (ob_start(), etc) Edit: Also, did you define wait() elsewhere or did you mean sleep?
  3. ~ reverses all bits. So 0 in 8 bits is... 00000000 (binary) or 0x00 (hex) and ~0 is the reverse of that, which is... 11111111 (binary) or 0xff (hex) this number, 0xff, is -1 in binary. To find out why negative numbers are represented in this way (why is -1 0xff and not 10000001//0x81?) you can read up on two's complement. The main reason for this binary representation comes down to making it much easier to represent negative numbers at a lower level. Eg, subtraction is simply addition of a negative number, addition of negative numbers can be done without special cases in the same circuitry as addition of positive numbers, etc.
  4. If you want to set how many decimals you want and then just go from there, you can easily just calculate a random integer and shift the decimal over. Eg. A pseudo-random floating point number between 1-1000 with 3 decimals could just be mt_rand(1*10^3, 1000*10^3)/10^3 (note: not integer division). In their method rang is probably the range of points (max - min). min is the lowest number, and RAND_MAX I would assume is a constant whose value is the same as mt_getrandmax.
  5. Dont' have quotes around it. WHERE $searchtype LIKE
  6. When echoing something, PHP will never be executed (unless you use eval, but that would just be silly!). To avoid XSS problems with HTML and CSS, just use the htmlentities or htmlspecialchars functions on any input you don't trust (hopefully all input). Edit: Grammar!
  7. Well I don't know what it is you have exactly. If it's just in a php file, check the encoding of that file. If it's in a database, check the encoding of the database table.
  8. Also be sure you're setting the content-type header of the email to text/html.
  9. http://www.phpfreaks.com/forums/index.php/topic,95426.0.html
  10. Try encoding whatever it is in Unicode.
  11. It shouldn't be too much worry, just use mysql_real_escape_string or a comparable method for your DB (or prepared statements) and you should be fine. If you're asking what encoding your database table should be in, I'm always fond of Unicode, but any regular latin encoding should work just fine.
  12. This is always a hard question to solve when people's mail() function isn't working. It can fall under many categories including, but not limited to, server misconfiguration (it just doesn't send), ISP limitations (can only send in certain ways allowed by ISP) and spam filtration (email was sent, but was, for some reason, blocked). I've no idea what your problem is, but hopefully I've given you some more ideas, or perhaps annoyances, when it comes to worrying about why it's not working. Sorry I can't help out more, but I've never been good at troubleshooting these mail() issues.
  13. Nearly anything that can be done server-side is doable with php as it is turing complete, including tournament systems. We can help you figure out how to make it if you work to make it yourself and ask small questions as you go (things like "how do I do it?" are unlikely to be answered). If you feel like asking someone to make it for you, hop on over to the freelance forums to ask for someone to help you there. I'd refrain from going into too much troubleshooting over PMs as it takes away from the general knowledge available and because it is against the rules (for the before mentioned reason), not that you would get in trouble for it.
  14. I'm not sure I understand your question, could you put it in question form and add some more detail?
×
×
  • 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.