-
Posts
14,780 -
Joined
-
Last visited
-
Days Won
43
Everything posted by .josh
-
I beg to differ. It's not my fault the rules were vaguely stated.
-
meh. p.s. - it took about 10s for mine to load, you guys must have crappy computers and/or connects
-
preg_replace('/&?(start|limit)=\d+/','',$page_name);
-
In general, 20s is not a long time...is there a reason it can't just be reset on page load? It would be far easier for you to just start the process over on a new page load...my first suggestion is for you to reconsider whether it's really necessary to carry over a timeout of that short of time from page to page. if it is something you absolutely need to do, then as AlexWD mentioned, I'd also store the last call time in a cookie and draw from that from page to page.
-
btw the reason your original issue wasn't working with spaces was because you were escaping your value inside the .match() so it was trying to match a literal 'foo%20bar' not 'foo bar'
-
Well I don't think lynda.com offers that sort of thing because that's not really the intention of the site in the first place.
-
well you're barking up the wrong tree with lynda.com anyways. I have access to it through work and very little is actually useful as far as technical topics. It's more for guys in suits learning stuff like MS Office or maybe just enough of certain things to fake it while the real person is on vacation or something. Don't get me wrong, I like lynda.com but... not really a place to go to master anything.
-
No, that analogy was meant to convey a starving bum who is being picky about the food he gets. He did get his food - just not made the way he wanted.
-
You also aren't privy to all the colorful PMs and emails he has been spamming a lot of us with. Don't be so quick to judge
-
If you admit you don't know anything about programming, why are you the one doing the hiring? There is no magic question or "quiz" or other such crystal ball solution for determining whether you hire a winner or loser. Invest in learning about programming enough to at least spot good code from bad code yourself. Or hire a headhunter to do your hiring for you. If neither are an option... how much do you currently budget for programmer rate-of-pay? Be willing to fork over more $$/hr.
-
This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=308807.0
-
Receive and email when google refers a visitor part 2.
.josh replied to chrismarsden's topic in PHP Coding Help
We currently do not have a public code snippet feature / repo . -
If there is a question and it is specifically answered from something you posted somewhere else, I do not consider posting a link to it spam. If your post history is nothing but that though, I will consider it spam. Yes, you are technically posting relevant answers, however, continually pointing at posts you make somewhere else...the likelihood of you happening to coincidentally specifically answering those questions somewhere else becomes a lot smaller than you purposefully answering them on your own site and linking the answer here to promote your own site. So yeah, it is heavily circumstantial, a judgment call, based on posting behavior.
-
sounds like adware/malware to me
-
So where in your code do you actually assign a value to $fgcolor? did you look at your output source and see what is actually being output?
-
$string = preg_replace('~/_START_OF_WEBPAGE_(.+?)_END_OF_WEBPAGE~','$1',$string);
-
This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=308177.0
-
dumb question, but did you change the info you need to supply in $conn = mysql_connect('conn','user','pass') or trigger_error("SQL", E_USER_ERROR); $db = mysql_select_db('db name',$conn) or trigger_error("SQL", E_USER_ERROR);
-
Hello in_titusville, You can sit here and kick and scream like you are somehow being disrespected, injusticed, whatever the hell you wanna call it, but the truth is, you are the one doing the disrespecting. You devalue us, by expecting us to cater to trivial, common questions. You are the one that needs help. You are offering absolutely nothing in return for that help. And worse, you are bitching about the help you received. I don't recall you paying for your question to be answered. This is a free resource provided by people willing to donate their time and expertise to other people. Because we provide this with no benefit to ourselves, we can expect a certain level of respect and effort from people we choose to help. We are helping you, not because we somehow owe it to you, but because we want to, by our own volition. Even if fenway was being a jackass (which he wasn't), so the fuck what? Since when did he owe you anything? Even if he didn't provide actual help alongside his scolding (which he did), you still have no right to complain. You asked a question. A dumb question, because it is well documented and easily answered, with minimal search effort. And then you get all pissed off because you expect an answer, when you have no right to expect anything when you don't offer anything in return. If you want service with a smile, customer is always right and all that b.s., then get off your lazy cheap ass and hire someone. Otherwise, you'll take what you can get and you will do it with a smile, even if it's served with the tongue lashing you rightfully deserved. "WTF asshole, I asked for my burger with no mayo! Seriously, this place would be awesome if it weren't for the fact they always fuck my shit up. Don't make me go to the McJerkOffs down the street!" That is you right there. Except you're a fucking bum. A starving bum wandering in from the street, asking for a free meal and then complaining about the food donated to him. This site is great because we don't cater to people like you.
-
/<meta name="keywords" content="([^"]*)"[^>]*>/i
-
I love that. It's what computer sales people always say when you ask which one is better. Well sir, it depends what you want to use it for'. Well I was thinking about a drinks tray, something for the dog to fetch and bring back, and also a ramp for my sons' remote control car to jump over. lol...well technically the "it depends..." answer is somewhat vague, but it's still legit... "it depends" means...do you want a gaming computer, work computer? Do you plan on using graphics intensive programs (like games or photoshop) or just read some email? If you are just buying something to have on a business trip and just need to keep up with emails etc..there is no reason you need to spend more than a couple hundred $$ on a cheap laptop. That's what "it depends" really means.
-
I'm not really a hardware expert either but comparing the two: Sony bigger screen faster memory ~$90 cheaper more HDD space faster processor Asus higher screen resolution 2x more ram slots (both support same 8gb max though) more vram IMO I'd get the Sony and if the vram is that big an issue, put that ~$90 saved towards upgrading it.
-
you were supposed to remove the one before the while loop. $query_get = mysql_query(...); while($row = mysql_fetch_assoc($query_get)) { // html stuff here } My suggestion for you is to read the manual entry for mysql_fetch_assoc so that you understand how it works.
-
$count = strlen(preg_replace('~[^0-9]~','',$string));