Jump to content

Pikachu2000

Staff Alumni
  • Posts

    11,377
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Pikachu2000

  1. There are more reasons not to do it programatically than there are to do it, IMO. For instance, what happens to 'mcDonald' with that function?
  2. Sure. That shouldn't be too hard with a conditional using file_exists.
  3. The shorter it is, the higher the likelihood of a duplicate file name is, but I suppose you could use rand instead.
  4. When you move_uploaded_file(), you could append/prepend a value generated by uniqid to the file name.
  5. There has to be a better solution that what you're attempting. What, exactly are you trying to accomplish?
  6. You usually don't want to manipulate user submitted data in that way, for the simple reason that you have no way of knowing if that's what the user wants it to look like. If you insist on doing it, perhaps you overlooked ucfirst?
  7. It's probably being set just fine when the script is run the first time. From the setcookie manual entry, this probably explains what you're seeing:
  8. Probably doesn't help much, being that this thread is nearly a year old . . .
  9. In Profile --> Settings --> Notifications there are options on how to be notified, and what notifications to receive. There's also an option to follow every thread you reply in. If you don't want to be notified by default, there should be a "Follow This Topic" button in the upper right of each thread, but I believe you still have to at least choose the notification method in your profile settings.
  10. You'd just do it the exact same way you should be escaping all user data, with mysql_real_escape_string. EDIT: Assuming you're using MySQL, of course.
  11. A sincere thanks to everyone! If there's anything I can do to help, please feel free to PM Philip
  12. It isn't working because your changing the data instead of escaping it. Then when you echo the data the quotes are no longer quotes, they're html entities designed to be rendered and displayed by the browser.
  13. The real question is why would you store html markup in the database?
  14. I thought you lived here too. You don't?
  15. No, no, no, LOL. I mean from the time Philip asked me on IRC. By the time I was able to CMD-Tab and refresh, it had already happened.
  16. mysqli_connect_error() would be the correct function to use where mysql_error() currently is in the code.
  17. I sincerely hope you haven't posted a valid name, address, telephone and social security number on the internet for the entire world to steal.
  18. Since you already know foreach() is there for dealing with arrays, if using a for() or while() loop on an array helps you learn how they work, then by all means do it.
  19. I don't think it's as much a matter of ease, as a matter of what you're used to. Everyone I know thinks Mac OS is "hard" to use. Being a Linux and Mac user for the last 6 years, I think WinD'ohs is hard to use. EDIT: and really, the more granular the control you need over something becomes, the more complex it becomes to control.
  20. You have a multidimensional array there. It will help you see what the structure actually if you do this: echo '<pre>'; print_r($testdata); echo '</pre>';
  21. You already have a thread open for this same problem. Stop double posting.
  22. When I run the code you posted, it does not produce that error.
×
×
  • 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.