Jump to content

Alex

Staff Alumni
  • Posts

    2,467
  • Joined

  • Last visited

Everything posted by Alex

  1. Your problem isn't with using sprintf, it's the query itself. That's not how you do a MySQL update query.
  2. This topic has been moved to PHPFreaks.com Questions, Comments, & Suggestions. http://www.phpfreaks.com/forums/index.php?topic=338928.0
  3. Use array_unique to get rid of duplicates: $arr = str_split($variable1 . $variable2); sort($arr); echo implode(array_unique($arr));
  4. $arr = str_split($variable1 . $variable2); sort($arr); echo implode($arr); str_split sort implode
  5. Then set it to more than 10 seconds..
  6. You can also increase the time limit: set_time_limit.
  7. Depending on your host, you can always increase the memory limit; for example, ini_set('memory_limit', '40M') would increase the memory limit to 40MB.
  8. There are tons of tutorials for this, it's really simple. You can just google it and you'll get tons of results, but in general it'll be something like: var im = new Image(); im.src = 'imageToPreload.gif'; // ... Unnecessary.
  9. What do you mean "mess up the timing"? Sounds like what you're talking about could possibly be the effects of the loading symbol not being fully loaded in time. You can try pre-loading the loading gif.
  10. Alex

    php poll

    In the future please use or tags; it makes it much easier to read your code.
  11. I guess I'll request Alex, then. Current user has been inactive for 8+ years and has only 1 viewable post.
  12. Alex

    Firefox 6?

    It seems to me like the advantages of the rapid release cycle would play into the decision at least as much as the version number. I'm not sure how much the version number really means to people, that would be hard to determine concretely.
  13. Alex

    Firefox 6?

    This is in fact exactly (and officially) why they are doing it. It is nothing but a marketing campaign, because unfortunately, lots of people do just look at the version number and think FF is way behind. So expect rapid updates until they at least catch up to the other browser versions. Well, it's not exclusively superficial. It does have advantages over just increasing version number. They announced this as part of their new rapid release development cycle; they're expecting to reach FF7 before the end of the year. It's definitely a good thing.. would be even better if they adopted the chrome auto-updating mechanism.
  14. As far as I can see, you're never calling db_connect().
  15. Alex

    Google+

    Oooh Oooh, I want one! dockeryz at gmail Sent!
  16. Simply put, it doesn't work that way. The string, $N, will be assigned a value where it's declared including the value of $i, nothing.
  17. Um.. Then it looks like the reason is because you're not directly accessing the properties. It looks like the facebook response object is making use of __get, maybe. I'm not familiar with the object, so there's probably a better way to do this (a built in method), but this should work: $fb_result->__resp->data->first_name; instead of just $fb_result->first_name; Then you can use that in isset.
  18. Can you post an example structure of $fb_result and the exact code you're using to test?
  19. Alex

    Google+

    Do you have a gmail account I can send it to? (pm me it)
  20. Alex

    Google+

    @MrAdam: even though they've disabled direct invites (at least they were closed last I checked), there's still a way around it. You can send a post directed at the email address of someone you want to invite and they'll get an indirect kind of invitation to sign up. 90% of the time they can sign up through that, and even if they can't there's another loop hole to accept the invitation via mobile. Would you like an invite?
  21. Alex

    Google+

    I'm a little surprised that there isn't a topic about this already... I'm sure most of you have already heard about Google+: "Google's response to Facebook". I was never a big Facebook user, in fact I never really used it seriously. Granted this probably isn't the most well informed opinion considering I haven't really ever used it intensively, but I always felt Facebook had too many superfluous features and not enough useful ones. That being said, I'm fairly impressed with Google+ thus far. I especially like the "circles" feature which allows you to easily control who you share what with. While Facebook does have more or less the same ability, I feel that it's better implemented in Google+ and more focused on, which I feel is important. Specifically, the UI for adding people to certain circles provides nice visual feedback and representation that I feel really does make a difference. In general, the UI is very clean with many cool HTML5 additions. Based on first impressions, I think I could see myself using this actively in the future. It already has a bunch of useful features and I'm sure that Google has plenty more planned. Overall, it seems to come together rather well. The deep ubiquitous integration that Google is planning for Google+ into its other products is another huge selling point. Personally, I use tons of Google products throughout my day, and I'm sure many of you do too. It's almost as if you can't escape it, and I'm not sure as of yet if that's a good or a bad thing. Judging by the amount of attention Google+ has garnered and how sought after the invites are, it seems many people are looking for a change, and Facebook should be scared. Google might have found its way, finally, into social networking. What do you think about Google+? Oh, and if you want an invite feel free to request one in this thread .
  22. Please don't bump very old threads. It's unlikely you'll get a reply, especially since the OP hasn't been active for over a year. If you have a similar issue make a new thread.
×
×
  • 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.