www.webdeveloper.com

Search:

Type: Posts; User: NogDog

Page 1 of 20 1 2 3 4

Search: Search took 0.26 seconds; generated 29 minute(s) ago.

  1. I recently (last month) had to make a change for...

    I recently (last month) had to make a change for a cosmetic problem that only showed up in IE8 -- and only when it was being run in "compatibility mode". :rolleyes: But the client is a big...
  2. Replies
    2
    Views
    244

    Most non-trivial applications these days (whether...

    Most non-trivial applications these days (whether web, mobile apps, whatever) are developed using object-oriented programming methodologies, so if you are not up to speed on OOP yet, that is...
  3. Replies
    1
    Views
    162

    First someone would have to identify that there...

    First someone would have to identify that there is an airline booking system with an API you can consume to do this. Assuming there is (and you're willing to pay the costs to use it if there are...
  4. Replies
    7
    Views
    491

    Have you EXPLAINEed the slow query to see if any...

    Have you EXPLAINEed the slow query to see if any indexes need to be added or changed, or anything is causing a full table scan?
  5. Thread: MySql Thread

    by NogDog
    Replies
    1
    Views
    235

    http://dev.mysql.com/doc/refman/5.1/en/storage-eng...

    http://dev.mysql.com/doc/refman/5.1/en/storage-engines.html

    http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html#option_mysqldump_xml

    (Amazing what you can find in the official on-line manual....
  6. Replies
    2
    Views
    260

    While I realize it's "cool" to combine statements...

    While I realize it's "cool" to combine statements on one line, it makes debugging more difficult. I'd suggest something more like this:


    $query = "SELECT user,pass FROM members
    ...
  7. The XAMPP installation of MySQL is, in fact,...

    The XAMPP installation of MySQL is, in fact, taken from mysql.com. The only reason you might want to pull something from mysql.com would be if you need to use a specific version number that is not...
  8. Replies
    6
    Views
    288

    missing a comma between the first and second...

    missing a comma between the first and second params (i.e. between the single-quoted string and the double-quoted string).
  9. Replies
    6
    Views
    288

    The quick-and-dirty solution would be to change...

    The quick-and-dirty solution would be to change this line (assuming it's a field that might have this issue)...


    mysql_real_escape_string($line_of_data[5])
    ...to something like...

    ...
  10. Replies
    6
    Views
    288

    Sounds like a job for preg_replace()...

    Sounds like a job for preg_replace().
  11. Almost 400 views and not a single nibble? :( ...

    Almost 400 views and not a single nibble? :(

    Is there something more you need to know? (Other than salary, which I have zero to do with)
  12. Replies
    3
    Views
    382

    "@" suppresses many warnings/notices. IMO, it's a...

    "@" suppresses many warnings/notices. IMO, it's a lazy way to avoid doing a little defensive coding, while making it more difficult to debug. ;)

    You can save yourself maintenance grief with:

    ...
  13. Replies
    3
    Views
    382

    Do you have a session_start() somewhere before...

    Do you have a session_start() somewhere before (a) you reference $_SESSION in any way and (b) generate any output (which sends HTTP headers)?
  14. Looks like you were missing a closing...

    Looks like you were missing a closing parenthesis. Also, you do not appear to be escaping external inputs into your query, which is asking for trouble. At a minimum, I'd suggest something like:


    ...
  15. Replies
    7
    Views
    462

    If the user's browser is not sending the referrer...

    If the user's browser is not sending the referrer header, then you'd fall through to the else block in Sup3rkirby's example, even if in reality you got there from a page on your site (since either...
  16. a. You do not appear to actually be using...

    a. You do not appear to actually be using PEAR::Mail, in case that is important to you. (You are simply using the built-in PHP mail() function.)

    b. There is no reason to add a "To:" mail header to...
  17. Welcome to the forums. Note that I added ......

    Welcome to the forums. Note that I added
    ... tags around your code so that it's easier for us to read. Please use applicable bbcode tags in your future posts. Now give me a minute or two to...
  18. Replies
    7
    Views
    462

    Note however that browsers are not required to...

    Note however that browsers are not required to send the referrer URL, so if it is critical to your application to know this, $_SERVER['HTTP_REFERER'] may not be the ideal solution. If it's not...
  19. Replies
    2
    Views
    279

    glob() is probably simpler. If you just want the...

    glob() is probably simpler. If you just want the file names, I'd do something like:


    $cwd = getcwd();
    chdir('path/to/your/images');
    $fileList = glob($prefix.'*.jpg');
    chdir($cwd); // back to...
  20. Replies
    7
    Views
    491

    Yes, arrays are memory hogs to begin with in PHP,...

    Yes, arrays are memory hogs to begin with in PHP, and even if they weren't, that much data would still require a lot of memory.

    Not sure how feasible this is for your app, but I would consider a...
  21. Again, that probably depends on your goals:...

    Again, that probably depends on your goals: self-sufficient, one-person web site builder, or part of a team at a dot.com or even Fortune 500 company. While a solo freelancer can probably get away...
  22. Replies
    3
    Views
    361

    You can use the header() function...

    You can use the header() function to do a redirect. Just make sure it is called before any output is generated by your script.
  23. Replies
    10
    Views
    565

    Does the live code by any chance use a "p:" in...

    Does the live code by any chance use a "p:" in front of the host name parameter to mysqli_connect, specifying a persistent connection? In theory it shouldn't really be an issue, but you could try...
  24. Replies
    4
    Views
    364

    Right. The only exception to this would be if for...

    Right. The only exception to this would be if for some reason -- and I recommend against it in 99.99% of cases -- that you include it via a URL, which of course would not be the case here since you...
  25. I would say that either there is, in fact, an...

    I would say that either there is, in fact, an editorial error there, or possibly just poor layout making it appear that the code sample and diagram go together when they actually don't, since based...
Results 1 to 25 of 499
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles