Jump to content

requinix

Administrators
  • Posts

    15,227
  • Joined

  • Last visited

  • Days Won

    427

Everything posted by requinix

  1. Sure. Stick an onkeypress in each one that moves focus() to the next one if the value.length == maxlength.
  2. You're calling storeFormValues() wrong. It (more specifically __construct) wants an associative array.
  3. At the very end. ?> Try removing the ?> entirely.
  4. It looks like there's some whitespace at the end of core.inc.php. That shouldn't be there. Easiest way to avoid that kind of problem is to just forgo the end tag. Leave it out. It's not like it's necessary.
  5. It's possible but there are restrictions on what you can do (not to mention browser support). If you only want future dates shown then only show future dates. Is that trickier than it sounds or something?
  6. Then maybe you should go with IIS. The actual server software doesn't matter (in terms of this discussion). What matters is making sure the person setting it up knows what to do, how to do it, what not to do, and how to avoid doing it. If the guy knows IIS then don't make him deal with Apache; if the guy knew Apache then he shouldn't have to support IIS. Using something like XAMPP just means you don't know what you're doing. That's the problem.
  7. Reminds me, I totally need to clean up my Apache configuration too It depends on the Include directive. My Ubuntu 11.10 with Apache 2.2 uses Include sites-enabled/ which means that Apache scans its files and subdirectories. If it were "sites-enabled/*" then it would only check the files. I just tried sticking a link in three levels deep and it worked fine. Are you sure the symlink is right? Normally they're like "../sites-available/foo", which would break if you simply moved the file somewhere. But Apache should complain if that were the case.
  8. Hahaha... For something like this you do research, not try to solve it yourself. Maximizing Sharpe Ratio (PDF, MSCI Barra) Sharpening Sharpe Ratios (Goetzmann et al.) Maximizing the Sharpe Ratio Consult Google for more. And I can't vouch for the accuracy or validity of anything linked to above; use at your own risk, etc.
  9. Both questions can be answered with a link to number_format.
  10. With math. What equation?
  11. Question: how important is it that there's two decimal points? Seems that restriction keeps getting relaxed...
  12. What's your .htaccess right now?
  13. {2} of what?
  14. Can you post the whole code without separating it into pieces?
  15. Hmm... Strap it down? Buckle it in? Quick question: What's table3 for?
  16. Did you remove the RewriteCond? Because it has to be there.
  17. Few reasons. Apache might be chrooted, maybe you don't have permissions. Try going to just /.
  18. Unless you put a query string in the substitution URL, mod_rewrite will keep the original. Apache 2.4 has a flag to disable that but it's so new I doubt you have it. RewriteRule ^index.php$ http://www.bmeteor.co.il/? [L,R=301] That does stick a ? in the URL. The alternative is doing the redirection in index.php itself (like right at the top). if ($_SERVER["QUERY_STRING"] == "act=ecommerce&cat=5175&id=ERR&sort=price") { header("Location: http://www.bmeteor.co.il/"); exit; } By the way, you know the full name isn't necessary if it's your site? Including the [R] flag is enough to make it redirect. RewriteRule ^index.php$ /? [L,R=301] header("Location: /");
  19. Drop the leading / from the RewriteRule.
  20. You can. The problem is that jQuery might not be able to tell the difference between text and JSON. echo "true"; Then in the JavaScript pass dataType: "json" to .ajax(). That's one option. The other is pure PHP: header("Content-Type: application/json"); // ... echo "true"; The application/json tells jQuery that the result is JSON and not a string.
  21. ...They're just links. It doesn't matter whether a page is PHP or ASP, you can use whatever links pointing wherever you want. Am I missing the point? Is there something else going on?
  22. You can: prepend all your paths with /. $_SERVER["DOCUMENT_ROOT"] is an absolute path to the root of your website... on the server. / is an absolute path to the root of your website... on the client.
×
×
  • 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.