Search results

  1. M

    noob sql question

    "localhost" is the local computer, whichever computer a program happens to be running on. As a network address, it resolves to 127.0.0.1, the address for the loopback device, in IPv4. A loopback device is a virtual network device where all traffic is routed back to itself. It's like a phone...
  2. M

    hi

    For posting netiquette, read "How To Ask Questions The Smart Way".
  3. M

    Can't See Images

    Some of your image files have a file extension of ".JPG", but the links use ".jpg". There are two fixes: Rename the files to have a lowercase extension. Add 'Options +MultiViews' to your site .htaccess and don't include file extensions in URIs (e.g. use <img...
  4. M

    PHP MySQL update

    As this is a new issue, you should create a new post. If you keep posting in the same thread, people will assume you're writing about the same topic and won't step in. Post in a new thread will bring in fresh eyes. Include a link back to the old thread if you wish. $_SESSION['user']; may not...
  5. M

    Is IE, even 8, just effin broken?

    I'm not splitting hairs. I'm talking about the central issue, the answer to the question "Who's responsible for Yahoo Games not working with IE8?" I say "Because Yahoo chose not to support IE8," while you say "Because MS made IE8 incompatible." In any case, we can't debate why Yahoo Games...
  6. M

    Javascript problem

    JS scripts aren't HTML fragments. Leave out the <script> tags.
  7. M

    phpbb erroe codes

    For a PHP script, set the permissions to 0644. Nothing should ever have mode 777, as this gives everyone write access. Also, PHP scripts aren't executed as commands by the webserver (they're passed to the PHP interpreter), so no need to set the execute bits. The message about the missing...
  8. M

    Reusable Insert Script - Processes Data From Many Forms

    Your description makes sense. If you're concerned about being understood, you could take a page from test driven development or design by contract and give the declaration & behavior of a function that you want do define. I'll show how I'd go through this process and end with the resulting...
  9. M

    CGI script error logfile

    If your scripts are written in Perl, you can use CGI::Carp's carpout() to redirect errors. Other languages should have a similar facility.
  10. M

    extracting from a string

    Thank Randall Munroe, not me.
  11. M

    Is IE, even 8, just effin broken?

    The "credit/blame" statement I made was limited to Yahoo Games not working on IE8. I credit Yahoo for this, you blame MS.
  12. M

    extracting from a string

    As for the power of regular expressions, XKCD says it best:
  13. M

    Is IE, even 8, just effin broken?

    We don't have to disagree so much. I fully respect Yahoo for standing up to MS by refusing to support IE. The only point where we differ is that I credit Yahoo where you blame MS, which (as you say) comes down to perspective and opinion.
  14. M

    extracting from a string

    To illustrate the utility of regular expressions, here are some example functions for this problem. pgn2array will turn a string containing PGN formatted pairs into an associative array. function parseName($name) { preg_match('/^(?:(\S+) (?:(.*) )?)?(\S+)$/', $name, $name); return...
  15. M

    undefine index?????

    Feel free to use 'and' and 'or' forms when necessary if you understand operator precedence and can add explicit parentheses to: $foo='a' or false ? 'b' : 'c' and 'd'; $bar='a' || false ? 'b' : 'c' && 'd'; so the parenthesized versions are parsed equivalently. In general, you'll use...
  16. M

    FTP Help

    Be careful you're not violating the Terms of Service (TOS), specifically:
  17. M

    General Issues in Database Design and programming

    In discussing indexes and primary keys, it's helpful to distinguish the view of each in RDB theory and implementation. In the theory, a "primary key" is a minimal set of fields such that the other fields in the row are functionally dependent on the key. The primary key for a table is a...
  18. M

    extracting from a string

    Regular expressions are the easiest way to do it, though REs can be hard to learn. Studying the relationship between regular languages and finite state machines will give you the best understanding. You could also try MDC RE guide or the Perl RE tutorial For example, /\[(White|Black) ".*...
  19. M

    Is IE, even 8, just effin broken?

    Boy, this is really getting off topic. Let me sum up my position at the start, then address your points. As a web designer, you want a successful site. Supporting different browsers cost resources (time and effort) but gives you a larger potential user base. The more users you have, the...
  20. M

    Is IE, even 8, just effin broken?

    That's not a very usable approach. Your design should put the user first, and not require hir to jump through any hoops. Except that it was Yahoo's move. IE8 is more standards compliant than IE7. IE8 can even pass the Acid2 test. Of course, "more standards compliant" doesn't mean "standards...
Top