Jump to content

.josh

Staff Alumni
  • Posts

    14,780
  • Joined

  • Last visited

  • Days Won

    43

Everything posted by .josh

  1. $string = preg_replace('~([a-z]+):.+\.~i','$1',$string);
  2. you forgot a K
  3. On that note...what exactly do you think a "php" smiley should look like? Like a normal how would you make that look like a "php" smiley?
  4. why is that? Is it because of all the sandwiches?
  5. echo out your posted vars, make sure the script is getting them. Look in your check_login function, echo out the query, make sure it has what its supposed to have. c/p it directly into your db (like phpmyadmin or something), make sure it is returning expected results. What does your error actually say? Is it your script's custom msg or a php error message?
  6. back off neal, John is MINE. Go find you're OWN arch nemesis!
  7. Though we don't live in the state no more, we spent most our lives down in San Antonio area.
  8. Thansgiving is an american holiday. The official day is the "last thursday of november." A lot of people (and by people I mean your boss) take the whole week off. Fly out somewhere, get together with the family, etc... But, it's a federally recognized holiday, so even the poor people get to have at least today off (though your boss will still attempt to force you to work, and if that don't work, bribe you). I shall illustrate the story behind thanksgiving with the following allegory: Picture yourself in grade-school, you're sitting there in the cafeteria eating lunch minding your own business, when all of a sudden some guys come over to your table. They say hi, "ask" if the seats are free, and then sit down when you say "Sure!" thinking you've just made friends with the in-crowd. Next thing you know, one of them gets up and kicks you out your sit. With his steel-toe boot. Knocks your chair right over, with you in it. Tells you GTFO and grabs your food and starts slowly eating it and savoring every bite, all the while laughing at you, eating your shit just to rub it in. Since you're the little guy, you can't do shit, so you walk away wanting to kill yourself (that's how emos are born, btw). As you are walking away, the hot cheerleader comes up to you and helps you up. Lips pouting, saying how mean they are, making you feel like she really sympathizes with you. She even brushes you off, gives you a hug and kiss on the cheek. Then her friend behind her dumps her chocolate milk on your head and everybody starts laughing at you again. As you run away off in some janitor's closet where nobody goes, and it's dark and smelly, you start itching and getting pus boils and shit. It's cuz that chick gave you herpes on top of everything else. Normally herpes takes longer to develop, but this is poetic license here, so can it. So let's review: you thought you were getting some new friends. Instead, they kick you off your table, steal your food and engorge in it to throw it in your face, get off to being dicks and go in for round two, and top it off by diseasing your sorry ass. That's the story of thanksgiving, except with Europeans and Native Americans. Also, there were buffalo.
  9. I prefer killing cows and chickens. We're having a mexican thanksgiving. Tortilla soup, enchiladas, quesadillas, chalupas, tamales, tacos, beans and rice, salsa and queso and chips. umm, I think someone is making some churros and some flan. I can't believe nobody has made a thanksgiving thread yet.
  10. hmm....you made a custom blog all by yourself and you don't know how to add moderation to it? Or by "custom" do you mean like changing the styling of a 3rd party blog... Add a column in your db, simple boolean column. All posts start out with a 0. When displaying the comments, only select where column != 0. Then periodically check your db for 0's and review the posts, change it to 1 or something if it's not spam. Or write a script to display all posts where column = 0 and a checkbox next to ones to check for approve. update table to change the ones you selected to 1. You could also add captcha and/or honey pots to your comment form to help kill off the spambots.
  11. I made a dummy totalIt() function that just alerts the value. All of the values in the array alerted for me in IE8 and IE7. Perhaps you should explain what doesn't work.
  12. As Mchl pointed out, creating a forum for something doesn't magically make people flock to it. You have to promote it, and seeing as how we are, as Dan pointed out, a php community, that's not going to happen. If we actually started seeing a lot of threads about AIR show up on their own (and consistently), I would support creating a (sub) forum for it. But as it stands right now, there's not enough activity to support that. That's how virtually all of the non-php forums are, in principle. Every single one of them, even the javascript and mysql ones, are there because there is enough activity, not because we are a mysql or javascript community.
  13. I'm sure that totally makes sense to you, since you know what the context of the situation is. But as for the rest of us, we're not there, and we're not psychic. You're going to have to put a lot more effort into explaining your situation if you want an answer.
  14. I downloaded Windows 7 Pro for free and it's copyrighted. I'm pretty sure it came without viruses. okay you got me there, mr. semantics. Dammit I want a free (legal) copy of windows 7, hook it up.
  15. I use mcafee enterprise edition, supplied by company I work for. Before that, I used windows defender, and I never had a problem with viruses. Probably because I don't go around trying to download copyrighted stuff for free. Which I'm not judging... just sayin'...it's a double edged sword, doing that.
  16. That means that the code you have is within a method (function) of a class, and it is calling another method (function) within that same class. In other words, "call procLogin() of this class" class something { function abc () { // do something } function xyz() { // call function abc in class something. Since it is in the same class as this function, // you can say "$this" as a shortcut $this->abc(); } }
  17. make sure there is no whitespace. above session_start(); also check session.php
  18. [ot]btw your condition will always evaluate true. [/ot]
  19. read stickies.
  20. yeah the x replies x views is hard to read now. would be easier (IMO) if the <br/> was replaced with a delim like a pipe or something (to keep it on the same line and therefore produce 2 columns) and maybe some padding added to the td
  21. You do not need to add the dot or hyphen or space. Instead of trying to match possible formats, strip everything out but the numbers (using preg_replace pattern posted by alex and zanus) and then count how many numbers there are. If you expect 10 digits (U.S. area code plus number) strlen($result) == 10. If not, tell user you expect area code plus number no leading 1's etc...
  22. pr0n looks much better on a 50" plasma TV.
  23. It's called A/B and/or Multivariate (MV) testing. Marketing departments do it all the time to test effectiveness of pages/layouts/etc... usually you use a system like Google Website Optimizer, Yahoo Web Analytics, Omniture Test and Target, SiteSpect, Optimost, etc.. When the page loads, a request is made somewhere to have a "recipe" trigger for you. A recipe is page A or page B or page C, etc... alternate versions of a page. Or in the case of a MV test, a different combination of elements on a page that are swapped out with alternate content. Usually a cookie is stored on your computer to keep track of which recipe you got, so that you will continue to see the same recipe (which is the point of the test - can't determine which recipe is most effective if it randomly keeps giving you different recipes). Easiest way to see what your friend is seeing or visa versa is to clear your cookies and refresh. If the test is targeted, it may not be that simple. Recipes can be targeted, based on things like referring URL, search engines user is coming from, keywords used, etc.. which would make it harder for you than just clearing your cookies. In google's case, I doubt the tests are targeted, seeing as how search engines are usually the pre-test starting point, and the landing page is usually a ppc link. On the other hand, considering they own GA and GWO, good possibility they are tying in all that data to target you.
  24. Well you must not be a (straight )?male. Or you're a robot. Otherwise you woulda been too busy staring at the titties to notice that
×
×
  • 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.