Jump to content

Daniel0

Staff Alumni
  • Posts

    11,885
  • Joined

  • Last visited

Everything posted by Daniel0

  1. Because you can only address 256 different integers using 1 byte. You have 4 byte = 32 bits, which gives you 232 = 4,294,967,296 different IP addresses. Some of the ranges are reserved, so the actual number is lower. Edit: Fixed typo pointed out by Philip.
  2. As the sticky topic in that board mentions of course http://www.phpfreaks.com/forums/index.php/topic,167887.0.html
  3. Google decides based on what it thinks is best. You can't change it.
  4. It's just examples of product names. It's not supposed to reflect market share or whatever.
  5. Try using the -H option as well. That will override the HOME environment variable.
  6. You need to put the while at the end of the do instead of the if.
  7. Encryption is by definition reversible. There exists no such thing as "one-way encryption"; you're thinking of hashing, which is a different technique.
  8. Yes, if you substitute MD5 with SHA512. You really should just do like this though (or using another algorithm than SHA512 if you wish): $hash = hash_hmac('sha512', $password, $salt);
  9. It's likely set in the vhost configuration for the domain names.
  10. open_basedir is turned off. In the PHP.ini it's commented out. Apparently it isn't turned off if you are getting open_basedir restrictions. Configuration settings can be set a number of different places: http://dk.php.net/manual/en/configuration.changes.modes.php
  11. Word is that its not good to use <?= and <?, you should always use <?php. It's perfectly fine using those if you have control over the environment(s) that your PHP script will run it.
  12. It's talking about methods in the PDOStatement class
  13. Right, as i said, greedy.
  14. If you buy a book on PHP 6, you're being scammed. There exists no such thing as PHP 6 right now. These kind of books only exist because there are greedy and/or stupid book publishers that decided it would be a brilliant idea to release books about a development branch without even an alpha release.
  15. Perhaps you could show your AS code?
  16. crc32 returns a signed integer. Try converting it to its unsigned string representation as the example in the manual shows.
  17. Because that's apparently where you're copying to/from. Check your code for a call to copy(). Either stay within the paths specified in open_basedir, or turn it off.
  18. Or if you're using PHP 5.3.0 or later: http://php.net/manual/en/datetime.diff.php
  19. Is this for real? That's a shitty exam. What value does it have being able to memorize the API? It certainly doesn't make you a good programmer. Anyways, all of them are valid methods, except for fetchClass().
  20. http://www.faqs.org/rfcs/rfc821.html
  21. Having Paris Hilton speak on your website, and not annoying your users are mutually exclusive.
  22. Run it like this: sudo -u TheMatlabUser /path/to/the/script.sh Then add the following to the sudoers file: TheMatlabUser ALL=NOPASSWD: /path/to/the/script.sh
  23. You'll have to convert the config file to ;-style comments. If you're using any half-decent editor, you can just use its search and replace feature.
  24. Works fine for me in PHP 5.3.3-dev. Could you post the code that fails as well as the actual error message.
  25. That site sucks: 1) It starts playing sound without asking me. 2) When I close the tab it asks if I want to leave the site.
×
×
  • 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.