-
Posts
15,266 -
Joined
-
Last visited
-
Days Won
431
Everything posted by requinix
-
PUT and DELETE method not supported on IIS server
requinix replied to Forgerbours's topic in Microsoft IIS
Does the error page mention WebDAV anywhere? -
jQuery. Or another Javascript framework. You're getting into the realm of things that are awkward and tedious to do in plain Javascript. For example, what you're looking for in jQuery is done with $(".testclass").html("result here");
-
For crying out loud, how can it be so difficult to explain this... Let's try pure algebra. Can you handle algebra? I hope so. Some variables: B = bet amount O = odds of winning P = net profit W = amount paid out to the winner Some equations: P = W - B (profit is the winnings less the bet amount) W = B * O + B (winnings is the bet amount paid out by the odds, plus the original bet back) Let's combine those two equations: P = (B * O + B) - B P = B * O Okay? So the net profit is the bet amount multiplied by the odds. Now let's rearrange it so that the equation solves B (what you want to know) in terms of P (a known amount) and O (also a known amount). B = P / O Now let's plug in some values. P = 30 O = 5/2 = 2.5 B = 30 / 2.5 B = 12 What is not clear about that?
-
You keep saying $42 but the question, as far as I can tell, has always been "what is the bet amount to get a profit of $30?" Which bsmither and I have both told you is simply profit / odds. The fact that he receives $42 is moot.
-
$12 is right... Not sure what the $42 is for? Profit of $30, which means 2.50 * $bet = $30. Because you can ignore the +$bet part because that's just him getting his money back. 30 / 2.50 = 12.
-
What keys do you have on that table? Do a SHOW CREATE TABLE $table if you're not sure. More than one key? Sounds like you're violating one key (that isn't the description), triggering the ON DUPLICATE KEY, but then violating the description key with the new value.
-
"Until 1 post" would probably be fine. I wouldn't go for the "until X days" because I've seen spammers sign up days, even months in advance of their first post.
-
Registration CAPTCHA broke. It's disabled for now but they're trying to fix it.
-
Yes, in general (depends if your hosting allows it), but there are very few reasons why you should ever do that. What do you need it to do?
-
I suggest actually learning PHP so you'll understand what the code is doing and can figure out answers like "remove the parts you don't want" on your own. echo $ImStore->get_permalink( "shopping-cart", true, false, $post->post_parent );
-
Those figures only show anything if there is a PHP process running at the very same second you get to that page. For a low-traffic site that may be a rare occurrence. Create a script with something like a sleep(100) so it runs for a long time, go to it in your browser, and reload the CPanel page.
-
Proxies. Configure your browser to use one of the millions of free proxies located around the world.
-
Don't rely on the time ranges (presumably 6-8, 8-12, 12-5, 5- to know what they did. What if someone clocked out for lunch after noon? What if they needed to leave early, like 3pm, for a doctor's appointment? What if they came in late, like 9am, or had to work late, like until 10pm?
-
You aren't using date or time properly, probably because you don't know what they do. Read the documentation. When you get the date and time into the right form, the next problem is your query. The date and time will be strings, and strings in queries need quotes. In fact this seems to be another place where you don't quite know what you're working with. After you fix the quotes and the other syntax error, you may find that it's returning far more "alerts" than you wanted it to - your condition says that the date is in the past or the time of day is earlier in the day (which says nothing about the date itself) or that the alert hasn't been sent yet.
-
Just because it uses the same = symbol doesn't mean it works the same way. That does not make sense. Rewrite the expression in terms of X alone. Meaning you have to end up at X = ....
-
The most appropriative way of using data formats
requinix replied to web_craftsman's topic in PHP Coding Help
Don't make it more complicated than it needs to be. Add a column to whatever table you're using to hold the HTML-ready version, alongside the raw BBCode version. Yes, it doubles disk space, but disk space is cheap and plentiful while your time is not. -
It's not that simple. What type of applications? Employment in what field? Java is a little more flexible than C++ in that regard (at least not without using assorted frameworks) but people don't use it for "normal" programs anymore.
-
Why do you want to learn it? Java is more common for web development and helps for Android, C/C++ teaches you a lot about how software works at a lower level.
-
The site you PMed me is behaving exactly like your original rewriting rules are still in place. What's in your .htaccess now?
-
You'd have to change the first RewriteCond to check if the HTTPS flag is off, but otherwise yes. Only a couple more days? Might as well wait. And when you do the switch you can enable HSTS too. - HTTP Strict Transport Security - OWASP
-
RewriteCond %{HTTP_HOST} !^https://www.example.com.au$ [NC]That will never match. The HTTP_HOST is literally just the hostname. You need to check the "HTTPS" flag separately. Redirect https to http, for some crazy reason, as well as no-www to www? RewriteCond %{HTTPS} =on [OR] RewriteCond %{HTTP_HOST} !=www.example.com.au RewriteRule ^ http://www.example.com.au%{REQUEST_URI} [L,R]
-
So now either you find a new hosting company, upgrade to dedicated hosting (where you can control the server and install your own software on it), or don't convert files.
-
ffmpeg has nothing to do with PHP or GD, the latter of which is a library and not an application, but your conclusion is correct.
-
You can get ffmpeg as a PHP extension to bridge the gap, but you aren't going to find something purely PHP to do this.