-
Posts
14,780 -
Joined
-
Last visited
-
Days Won
43
Everything posted by .josh
-
@AlexWD : my point was that yes, over the years, ability to collect data has increased, but we didn't just magically start thoroughly writing down numbers this year. Anybody can review historical data and see that 2011 has produced many times more than normal earthquakes, volcanic eruptions, tornadoes, animals dying, etc.. than usual. @MrAdam: Also want to point out that the Q&A link you posted...mentioned nothing about stuff predicted to happen this year. But even still...assertion is govt. and NASA is covering the shit up, so pointing to a website where "credited scientists from NASA" are saying "no it's not true" doesn't mean anything.
-
The reason for the unprecedented amount of natural disasters is our unprecedented ability to detect natural disasters. Right...so in 2010 we did not have the same unprecedented ability to detect natural disasters?
-
@MrAdam: yeah well...see problem is that the "proof" from your link basically boils down to asking the people who are accused of covering it up whether it's true or not.
-
Actually there are a couple varying "predictions" about shit hitting the fan this year, around september/october. Google "Elenin 2011", "Planet X 2011" and/or "Niburu 2011" if you're too lazy, basically the gist is there is this "entity" floating around in space right now and the U.S. govt and NASA is claiming it's a harmless asteroid but a lot of other people including other world governments are calling b.s., saying it's really a brown dwarf and it is the reason for the unprecedented amount of natural disasters this year (stuff to do with its own gravity coupled with the sun's gravity) and it's due to "line up" between us and the sun later this year (which causes some kind of gravity well) and shit is gonna super hit the fan when that happens.
-
Ugh, Guys, help? THanks, IE vs Firefox, look at this mess
.josh replied to AbbyShotDev's topic in CSS Help
Are you seriously the web dev for a company? That's the impression I'm getting from your previous posts...and yet you say this?? Good lord, people will hire anybody these days. Also, considering you are failing to even grasp fundamental principles of how web pages and code work...I would not be so quick to judge whether or not something is an error. I mean seriously, how can you sit there and say whether or not something is an error when you clearly have no idea what any of the stuff is for or how it works or what it is doing? I think maybe if you weren't so quick to dismiss what people are telling you, people around here might be a little more willing to help. -
How can anyone predict what is likely in the next 5 years. - obviously. == world exploding
-
you can start by reading the manual entry for echo
-
There is a books resources thread stickied in this forum.
-
As long as there is no enforced standard among all browsers, frameworks like jQuery will always exist and be a viable option.
-
FYI we use SMF not phpbb.
-
Okay soo...are you looking for people to find bugs or make suggestions on how to improve it on a technical level? If it is the first, then okay, thread stays here. If it is the 2nd, then this still belongs in website critique forum.
-
Also, you're going to get copycats regardless. If you can't hire a lawyer to pursue them, then you're going to have to adopt the "do it better than them" strategy. And to a large extent, you're going to have to have that strategy anyways. First, there's no way a lawyer can completely squash all copycats. If for no other reason, because many will be sitting outside the jurisdiction of copyright laws. 2nd...it only takes so much tweaking to allow someone to call their version of your idea their idea, and you can't do nothin' about it. So you should just get it out of your head this whole fear of people "stealing" your work, because it will most certainly happen no matter what route you take. So adopt the "do it better than them" attitude and the rest will fall into place, if you're willing to put the work into it.
-
Even if you want to sell it off to someone willing to put more money into it, your best shot at doing that would be to first put some of your own money into it. If you've already put in the time/effort/money to make it work...hosting is pretty cheap, especially if you're just trying to get enough traffic to show investors and potential buyers that it's worth putting their money into it. So that would be my first advice to you; at least invest your own money initially. It really isn't a lot, a few bucks a month. If you can afford to be online and coding this thing, you can afford a few more bucks a month for hosting. If you can't, then maybe you should back up and re-prioritize where you're putting even that money/time. My next-best bit of advice is if you want to broadcast it to potentials but don't want to do ^^, write up a summary of what your product is. And make a video/webcast demonstration to show people, instead of pointing to a live working version.
-
IMO this question doesn't come up regularly around here. But if we were to nonetheless make a public statement about it, I certainly do not feel it should deserve its own thread, as it really does boil down to "There is no process for you to take." I would instead suggest amending the Groups, ranks, and hierarchy on PHP Freaks thread to include a brief summary of how one moves up in rank.
-
True story...he sent me 5gb of midget-on-badger interspecies erotica from his personal collection. Though in retrospect, had I known he uses a mac, I would have demanded 10gb instead.
-
Well for your purposes, you don't actually need $1, as you are wanting to match and remove. So you would really be doing: $description = preg_replace("#^Sl.*#", "", $description); Breakdown: # beginning pattern delimiter. preg_xxx functions require you to wrap the pattern in a delimiter. You can use pretty much any non-alphanumeric character as the delimiter. Most people use / ~ or # ^ start of string anchor. Tells the regex engine to start at the beginning of the string SI look for and match the literal characters S and I .* the dot says to "match any one character" (which matches almost anything, but I don't wanna complicate things for you). The * says match 0 or more of any of the previous thing, so together, it says to match 0 or more of anything # ending pattern delimiter. ------- As to what $n (like $1) means...basically they are temporary variables the preg_replace (and some other functions) uses to store captured groups within the pattern. For instance, the pattern Zanus originally supplied: $description = preg_replace("#^Sl(.*)#", "$1", $description); You see in there (.*) the parenthesis mean to capture that part of the pattern. That stuff will go into $1. If you have more than one set of (...) in your pattern, $n represents the captured groups, in the order that they appear in the pattern. But for your purposes, since you are looking to replace the entire matched stuff with nothing, you don't need to capture anything or use $1 or anything.
-
We're actually working on a new forum "feature" that highlights text-book examples of good and bad threads/posts, so that people can see real-life examples of rules and etiquette.
-
Yes this is true. If someone wants to specifically analyze a form and find which fields to avoid etc.. then sure, it is easy to handcode a spambot to get around that stuff. But that kind of defeats the purpose of having a bot in the first place. People who try and spam generally avoid trying to have to program bots for individual forms. Doing those things once will go a long way in reducing spam from bots that try to parse generic or "standard" forms. Changing your "rules" up on a fairly regular basis will make it go even further. But there is no 100% solution no matter what you do.
-
Captchas are annoying and bad for UX, and you should avoid it unless you absolutely must use it. Instead, look into using a honeypot and/or token/time system instead. They are passive and do not require the user to jump through any hoops, and are very effective. I'm sure you know how to google, but to summarize: honeypot : basically you add a field to your form but use css to hide it from the user. A bot doesn't know it's hidden so it fills it out. In your validation script, you then check if it was filled out. If it was, then count as spam and discard. token system: Basically you generate a unique id and save it in a session var and also output it as a hidden field value in your form. When user submits form, check for the id and if it matches the session value. If it doesn't, count as spam and discard. time system: Output a timestamp to hidden field in form (better if you encrypt it). When form is submitted, compare hidden value to current timestamp. If it is something ridiculously low like < 1s then count as spam, discard. But you can go even higher, depending on how long you think it should take the average user to fill out the form. This is not an exact science and not 100%, as a bot can simply time itself out to get around it. But most bots don't, and even if they do, it's still effective, combined with the above methods (you can even combine this with the token system).
-
Server script not rendered correctly by browser
.josh replied to engineerChris's topic in PHP Coding Help
This is not a problem with your browser(s), it's a problem with your server and parsing php. Check to make sure the file's mime-type(s) are setup to properly parse php. -
all by itself, that works fine for me (even in Chrome). What else do you have on your page? I don't think that error has to do with this code. For one thing, I do not see "string" anywhere in that code, and the error is telling you that you are trying to make a call to a function called "string" and it doesn't exist.
-
You need to make an AJAX call to your php script. Lots of AJAX tutorials out there.
-
The dot in .*? by default will only match up to to end of line char (\n), So unless your opening b tag happens to be on the last line, your pattern won't work. You need to use the s modifier to get it to also match \n so it will match to the end of the content. http://php.net/manual/en/reference.pcre.pattern.modifiers.php
-
What this board is for If you have some code you are wanting people to debug, or a website you are working on that you want people to 'beta test,' post the code/link here. The idea of this forum is that you have finished your code, and now you wish for people to test it for weak spots, logic problems, etc.. While you can of course expect feedback from your testers, if you need more help fixing your code, use the Help forums. This forum is for testing and testing feedback ONLY. This is NOT a "rate my script/site" forum. Please go to the critique forum for that. Try to give a good description of what your code is supposed to be doing. We can do little more than find syntax errors if we don't know what it's supposed to be doing. Your topic doesn't show? All new topics are moderated, meaning that they will not show up until a staff member approves it. Read the rules for posting in this forum and follow the directions. Some advice to be cautious Be very careful on what kind of info you post, especially when it comes to posting links to your site. Posts of this nature are often times aliases of "please try to hack my site and tell me if you do, and how, so I can fix it." We cannot and will not be held liable for any kind of damage or loss that results from you posting any of your stuff here (or anywhere else on the site, for that matter). Not everybody out there is honest. Someone out there may read your post, go to your script, find a security hole and exploit it without telling you, all the while giving you the thumbs up. Rules Regarding "Exploit Scanners" Use of exploit scanners can be an effective way to discover exploits on a website, so we have no intention of banning posting scanner results. But these scanners can also return bogus results. Secondly: Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime. As of now, posting scanner results is only allowed under the following conditions: 1) You must share the name and how to get the scanner 2) You absolutely MUST explain every item in the result (why is this a risk, not just because the scanner says so) As with all forum rules, ignoring these could lead to moderation action. Ignorance of these rules is not a defense. Thank you for your cooperation.