Jump to content

Daniel0

Staff Alumni
  • Posts

    11,885
  • Joined

  • Last visited

Everything posted by Daniel0

  1. SimpleXML isn't particularly good for editing XML, in my opinion. I would take a look at DOM instead.
  2. I would advice against using variable variables. Your code is already almost entirely unreadable.
  3. You would not want to use mail() at least. Use some sort of mailing library that allows you to stay connected to the SMTP server.
  4. That doesn't make sense. How would would it look in XML if you merged two elements?
  5. Well, I use a Firebug plugin called Firecookie.
  6. No it isn't. That code cannot result in that error.
  7. Try changing the value of the cookie.
  8. Its okay, sorry its just that ive been up all night and I shouldnt take the anger out on you. I simply understood when you guys say php freaks "staff" you are referring to gurus, recommended, admins, supports..etc And regulars as ...well us I was thinking when he said ranks above regular such as Addicts, Freaks, ..etc can mark threads as solved. Simply it was stupid of me to think like wise... This post outlines the hierarchy on PHP Freaks. It is still accurate.
  9. Everyone above the level of a regular user can mark any topic as solved.
  10. CSS3 is based on CSS2...
  11. Use a loop.
  12. Something like this should do: SELECT town_id, name, ROUND(SQRT(POW(location_x - 339, 2)+POW(location_y - 224, 2)), 1) AS distance FROM towns ORDER BY distance DESC, name; That will get the distance of all the towns from the point (339, 224).
  13. Never heard about it...
  14. On second thought, $offset might not be so good for this. preg_match_all() will give you all the matches though, so you can just select the second one and ignore the first one.
  15. Well there is: SELECT id FROM table WHERE prefix = SUBSTRING('$prefix', 1, 3);
  16. If the prefix is always three characters long, then just truncate the user input to three characters.
  17. I'd put the activated field in the users table though. Otherwise you would have to check the activation email all the time.
  18. Daniel0

    

    You were already told to save in UTF-8 without BOM. Look through your editors' settings or look in the manual. We're not experts in every single editor out there.
  19. Well, maybe read Language Reference in the manual then.
  20. Daniel0

    Project

    A web based Skynet.
  21. You must assign it to something or pass it on to something else. If you don't do anything with the return value it's sort of useless.
  22. It would sound like you have to lookup the term "variable scope" in the manual. The $records variable only exists within the scope of that method.
×
×
  • 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.