Jump to content

Daniel0

Staff Alumni
  • Posts

    11,885
  • Joined

  • Last visited

Everything posted by Daniel0

  1. Why not just use two HTML line break tags then?
  2. The value cannot default to null, but you could just check if it's set after the form has been submitted.
  3. How about this? $text = '<p>'.str_replace("\n\n", '</p><p>', $text).'</p>';
  4. Is it when you're typing or is it in like a database or script?
  5. Just specify the domain name or the IP of the MySQL server instead of localhost.
  6. Make sure you filter all data from the user. Only trust the data which come from yourself. Make sure users are not allowed to post HTML tags. Make sure you escape all data from the users before you use it in a query (e.g. with mysql_real_escape_string()).
  7. Based on my limited knowledge of C and C++ I'd probably say that if you know one of them, then it shouldn't be too difficult to learn the other rather quickly.
  8. Just do a Google search for "C++ tutorial". http://en.wikipedia.org/wiki/Compiler The extension for C++ files are .cpp, but you could name them anything you want. Also, you wrote C in the title, but C++ in the topic. They are not exactly the same thing.
  9. Try Ophcrack (http://ophcrack.sourceforge.net/). It uses rainbow tables to crack the password.
  10. No. You'll have to load multiple pages whether you choose to use the same file or multiple files to handle the form and the backend (data processing when the form has been submitted).
  11. <?php $var = preg_replace('/[^0-9]/', '', $var); ?> Would be an easier way to remove all non-numeric characters from a string.
  12. Perhaps there was some (fatal) error and PHP is configured not to display errors.
  13. Sound like homework to me...
  14. No he didn't... Barand edited it and added the code tags
  15. You can use whichever program you feel is the best.
  16. For your Divisible() function, this would probably be better: function Divisible($num1, $num2) { return $num1 % $num2 == 0; }
  17. It doesn't. It creates a new instance per each request as the script is parsed on each request.
  18. You could try some of the many stock photography sites. You could also use your own camera or hire a professional photographer.
  19. No. The default for both PHP4 and PHP5 is E_ALL & ~E_NOTICE so a Warning will be shown.
  20. Weird... maybe safe mode is on?
  21. include gives warnings, require gives fatal errors.
  22. Then what was the problem?
  23. Would this be of any use? http://java.sun.com/javase/6/docs/api/java/util/HashMap.html
  24. Perhaps the statement in the while loop never evaluates to true (i.e. the code in the block isn't run)?
×
×
  • 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.