Jump to content

Adam

Moderators
  • Posts

    5,717
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Adam

  1. I doubt you will see many companies upgrading before at least 5.4.1, when they will undoubtedly fix a bunch of issues with it.
  2. sahil123, you're going to need to provide us with more information than that. Is the data cached? If it is, that will explain why you're still seeing the old (cached) data after you've made the update. Posting the *relevant* code would be helpful if you don't fully understand what we're asking.
  3. Sounds like you probably have the user data stored within the session, but are not updating it when you update the database. If that's not the problem or you're unsure, you'll need to the relevant code.
  4. You'll need to provide the code, Moron.
  5. Adam

    BBcode

    PECL is a library of PHP extensions written in C, which are compiled into your PHP installation. Forum software like SMF provides their own PHP-based implementations. There is a PEAR package (BBCodeParser) you can use to handle this though, or plenty of examples online if you don't want to write your own. If you want to have a bash at it though, as RobertP says you'll need to use regular expressions.
  6. Debug the variables. Use var_dump to test each variable and make sure they're what you expect; namely $uploaded_a_file, $avatar_ext, $jpg1, $png1, $gif1 and $jpeg1. Given they're what you're testing with in the condition that doesn't work as expected.
  7. It's the mythical Greek hero: http://en.wikipedia.org/wiki/Ajax_%28mythology%29
  8. There could be a parent element restricting the size; you might have CSS rules setting the width/max-width on the table, row, or table cells; you may have width attributes, etc. Could be 1 out of 50 reasons, or it could be all 50. You need to show the mark-up.
  9. The PHP for this would be simple enough, but I would ask this question in the GA forums. From reading this article, it's hard to tell how GA tracks across multiple domains. To me it suggests that you just need '_setDomainName()' to none, but I'm curious why you need to '_link()' to the other domain as well. What if there are no links between the domains, like in your case? You could do some testing if you have a second account..? Out of curiosity, what do you get out of this?
  10. Looks fine to me. Depends of course on how many tooltips there are? If it's a reasonable number then I would load them all in the first call, instead of one per call. The bottleneck, as you've identified, is in waiting for the request. If the tooltips are used frequently, then I would even consider just defining them as the page is loaded. There's no sense in using AJAX if it's degrading the performance.
  11. You have the selected attribute within the value attribute. Close that off within the first echo statement, and remove the single quote from the third.
  12. If they are the only requirements, you can just use string functions to do this: $str = strtolower(str_replace(' ', '_', $str));
  13. There's no sense in slowing down the regex if there will only ever be numbers, letters and underscores.
  14. Okay, we're not going to go through some random code you found on Google and show you how to use it. Though yes, you would need to set-up all the relevant database tables and actually write the 'glue' code that would make use of that class. Do you actually understand the Naive Bayes algorithm, and of course Bayes theorem that it's based on? Have you researched the common ways in which spam email is identified?
  15. Mail servers are generally written in lower-level languages like C and Java. What mail server are you using? I very much doubt it's PHP.
  16. It's the humblebumble think I was on about..
  17. They actually did pretty damn well.. raised nearly half a million dollars. Windows users are the least generous, with Linux users donating almost twice as much on average! Of course there was like three times as many donations from Windows users, but the law of averages never, ever fails.
  18. Well done fella!
  19. Don't buy it. Seven years is way too old for a PHP book - the language has changed drastically since.
  20. The site has no consistency; you have random fonts and colours all over the place. The header looks completely different to the footer. The buttons in the header have a white background around the corners. Comic Sans!? Looking at the source: you have an invalid doctype, tons of in-line styles and about 6 blocks of Google Analytics code. Sorry but, design-wise I could easily let you off. Selling SEO services with rubbish mark-up though? I wouldn't hire you, to be brutally honest. (Please take this as constructive criticism by the way. I'm not trying to put you down, but it's the opinion people will have with half a clue about websites.)
  21. Adam

    Regex newbie

    You need to add ^ and $ to the patterns, otherwise they're useless. I could have: "I'm a dick but I like jam 0000AS" Read here for a good explanation: http://www.regular-expressions.info/anchors.html
  22. Is "/usr/local/psa/admin/sbin/backupmng" a bash script? You'll need to post the code in there for us to know where the back-ups are saved.
  23. Might explain the "dirty" feelings people had.
  24. Think you missed the attachment for your last post..?
×
×
  • 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.