-
Posts
14,780 -
Joined
-
Last visited
-
Days Won
43
Everything posted by .josh
-
or random...how is that random? Just a thought, but instead of randomizing the order of the list, read a random line from the list. Make all the lines the same length (take the longest line and add blankspace or another delimiter buffers to the shorter ones). Then use fseek randomizing the offset argument (and rounding up or down to the nearest newline mark).
-
except that a negative char class is safer than a lazy quantifier...
-
you're also missing a subject...
-
uh...yeah...I'm kinda wondering how you managed to reverse a SATA cable... and why were you touching that in the first place? graphics card don't have nothin' to do with your HDD...
-
Need Answers Help!! Anybody! PHP5 and JavaScript!!
.josh replied to nmohamm's topic in PHP Coding Help
well then explain what exactly you are having issues with, what you've tried, etc... because all I see is "please fill in the blanks for my homework assignment". -
Need Answers Help!! Anybody! PHP5 and JavaScript!!
.josh replied to nmohamm's topic in PHP Coding Help
How can you rightfully judge whether something is too much to ask unless you know how to do it already and are just being lazy? Seriously dude, computer classes are not required courses. If you're just gonna have someone else do your work, why signup for it in the first place? We are here to help people learn. You don't learn by having others do stuff for you. -
Sure, but how would it know the difference between 01-04-2010 & 04-01-2010. Wouldn't it just choose the first format and make do with it, I'll use the YYYY-MM-DD format though. Would be nice for a bit of explaining. I don't think PHP.net mentions anything about it. In short, it can't parse everything, due to some formats being ambiguous. See the link Dan provided for details.
-
or changing content based on kwds (which btw will hurt your serp ranking if google finds out, unless you can demonstrate you are performing legit a/b or mv tests)
-
Your WMP is different if you need to first read and then type then when you just have to type what comes to your mind. Someone may score average on such a typing test but may have to buy 3 keyboard's a year because of his coding speed. Well, yeah... that's the reason why I did the test multiple times and even memorized the text... your wpm significantly increases if you know what you're typing ahead of time vs. having to read it, process it, and spit it back out. My testing and posted results were intended to show that distinction.
-
is MM_swapImage() and MM_swapImgRestore() php functions or javascript functions? edit: and are you actually echoing out $MobileImage somewhere?
-
well what are you ultimately putting into your database, a timestamp of the date the user enters in? Sure, you can use mktime but if you already have the fields separated and know which values are for what, you can use strtotime just the same..., since you control the format being handed to it... edit: strtime attempts to parse the string, and it recognizes a lot of formats, but if you are unsure how to format it, yyyy-mm-dd works.
-
$HTTP_REFERER is deprecated. Use $_SERVER['HTTP_REFERER'], but note that it is set by the agent making the request (like the browser) and is very easily spoofed, so basically it's not really trustworthy unless your site's average user is not inclined to know such things.
-
can you be more specific than "it fails" ?
-
the easiest way to do it is to not let someone enter in whatever date format they want in some generic one-field-for-everything form. Create separate dropdowns for day, month and year.
-
// database query stuff here echo "<tr>"; while ($row = mysql_fetch_array($results)) { extract($row); $images = $ImageThumb . $image_id . ".jpg"; echo "<td><a href =\"".$ImageDir . $image_id . ".jpg\" target='top'>"; echo "<img src=\"".$images . "\"></a></td>"; echo ($x % 7 == 0)? "</tr><tr>" : ""; $x++; } echo "</tr>";
-
might have to benchmark it and it certainly depends on how big the subject is (and in the end of the day diff might be too small to care...) but in general if you are just wanting to check a string within a string (not looking to match a pattern) the built-in string search functions are faster. strpos, stripos, strstr or stristr, etc...
-
I did 10 tests with 100% accuracy: High: 96 Low: 84 Average: 88 But fyi if you fix your typos during the test, it doesn't count it as an error, though it obviously hurts your wpm (other tests I've taken count the error regardless of whether you fix it or not; dunno which method is really more accurate :/). So if I roughly accounted for that, my wpm would be slightly higher but with errors knocking it back down (which I guess more or less evens out to just counting 100% accuracy runs, but idk...) Also for shits and grins I more or less memorized the paragraph and went balls to the wall and got 136 -> 122.
-
slightly related, up at the top left where it says "Hello <your name>" (see screenshot) under that is a link that gives you a listing of all threads you've posted in that have unread replies. [attachment deleted by admin]
-
Also, since we probably won't be jumping in individually welcoming every single person comes by, here's your generic welcome message: Greetings, ___________ ! Thank you for joining the board! Feel free to ask any question, but please don't be stupid about it. Make an effort to pick the right forum, make an effort to be detailed about your question, make an effort to read relevant stickies/rules, and we'll make an effort to help you. .CV
-
http://www.phpfreaks.com/tutorial/php-basic-database-handling
-
"level system" is pretty ambiguous... care to be more specific?
-
http://www.phpfreaks.com/tutorial/php-add-text-to-image
-
GENERAL RULES AND GUIDELINES FOR POSTING This forum is not meant to be a formal freelance service system. It is available for those who wish to seek out services or work from other people, as a courtesy to the members of the phpfreaks community. phpfreaks.com does not specialize in freelance services. This forum is an informal mechanism, as a courtesy to the community. We have no formal mechanism in place (like escrow) to guarantee payment, refund, work done, etc... phpfreaks.com shall not be held responsible for any losses you incur. we have never and continue to not act as any kind of mediator or verification/compensation source for people/organizations who use those forums. We will not be held responsible/liable for any damages, loss, etc. that occur from use of those forums. If you hire someone and they rip you off, don't come crying to us. If someone hires you and they rip you off, don't come crying to us. Those forums are a convenience. If you want something more official that offers guarantees, go to a real freelance site! If you have any questions regarding the freelance forum, feel free to ask them here. RULES: WHERE TO POST:If you want to offer your services, post in the Service Offerings sub-forum.If you want to offer a job or position of employment, post in the Job Offerings sub-forum. DO NOT post your 'resume' in job posting threads. You must directly contact the person you wish to reply to. The only reason replies are allowed is to ask for clarification/details about the job. Failure to adhere to this rule will result in all kinds of things, like you getting banned, or us disallowing replies. DO NOT make more than one thread offering your services. You can edit/reply to your thread to reflect additions/changes. DO NOT post advertisements to other sites offering freelance system services. For example, rentacoder.com, odesk.com, etc.. we have no partiality for or against those sites, but posts such as those are regarded as advertisement, which is against our main site rules. We fully acknowledge that this freelance system is limited, but we aren't here to provide free advertising for other places. If you prefer to do actual business through one of those sites, please specify in direct contacts with the person. You are allowed, as a freelancer or freelance company, to post a link to your personal portfolio/company to those sites, or a site that you own. But general promotions to those other sites are not allowed. GUIDELINES: When posting in the freelancing forum it's important that you provide a way for users to contact you. They will not be able to reply to your topics so they need a way to contact you privately. This can be using PMs, emails, any type of instant messaging service (MSN, Gtalk, AIM, Jabber, etc.) or however you see fit.The more specific you are about your skills, previous experience(s), availability, rates, etc.. the better your chances of getting serious inquiries. Posting vague "I'm available for anything and everything" might get more inquiries on average, but there's a good chance that it will come to nothing, based on any number of things that you could have posted here in the first place. Better to receive 10 emails from people who have some idea of your qualifications/terms, than 100 emails that don't.Be honest about your skills. All day long we see people posting about how they jumped on a job and bit off more than they could chew. They tell the client they can do everything they need and more, promise them the moon, and then promptly crap their pants about 5 minutes into it. Don't be that person! Some people get lucky and figure it out. Some people get lucky and get help that figures it out. Most people end up having to give up the project. Which leads us to....Wasting people's time and money. You waste the client's time. You waste your own time. That bad rep will more than likely come back to haunt you. All day long we get people trying to get us to delete their posts because they don't want their skeletons to come out of the closet (no we won't hide them for you). So be smart! Do the simplest easiest thing to avoid all this headache: be truthful about your skills. If you feel that being truthful will limit your potential clients, then get off your bum and hit the books. You can't seriously be in the business of trying to con people, are you?Be very clear about what you are doing. Some clients know your job, and are just looking for extra set of hands. Most do not, and therefore seek someone who does. Therefore, if you want to avoid headaches, it is your responsibility to be very clear about what it is you're going to do. What you're willing to do. What kind of support you offer after the fact, etc... on that note..Be up front and thorough about your prices. Take a look at the situation. Quote a price for it. Quote prices for things that might come up later. The more you have to go back later saying that xyz was unforseen or xyz wasn't part of the deal, regardless of whether or not you are in the right, the more you are going to come off as shady, to the client. It's like when you take your car to a mechanic and that funny noise goes from being one little $50 thing to a $2000 rebuild because the mechanic kept coming back to you saying something else is wrong. That stuff may indeed be needed, but the fact that you didn't think about it and let them know ahead of time speaks volumes about your skills as a coder. Some things just aren't foreseeable. Most things are.
-
I believe thorpe is working on something like that right now. Don't have an ETA or anything.
-
How about a captcha tutorial? Lots of them around, but we're supposed to be a resource, right? I may do it myself, if someone else doesn't volunteer.