Search:

Type: Posts; User: jscheuer1; Keyword(s):

Page 1 of 20 1 2 3 4

Search: Search took 0.24 seconds.

  1. Replies
    5
    Views
    1,636

    OK, the problem with glob for this is that it...

    OK, the problem with glob for this is that it requires the relative path. What you have is perhaps an absolute network path:

    "/1/file2.txt"

    If that means (network), we go from the root of the...
  2. Should be fine. It (the preg_replace usage you...

    Should be fine. It (the preg_replace usage you mention) already follows the accepted conventions for preg_whatever, and doesn't rely upon either of the regular expression we are changing.
  3. These two method are more or less equivalent. The...

    These two method are more or less equivalent. The major difference is that eregi is automatically case insensitive and accepts no switches, therefore requires no switch to tell it to be so or...
  4. Replies
    10
    Views
    3,416

    Not so important though I see, after further...

    Not so important though I see, after further research, you have to go back to before IE 6 at least (probably before IE 5 or IE 5.5), before you find a browser that doesn't support hasOwnProperty, at...
  5. Replies
    10
    Views
    3,416

    You can't polyfill hasOwnProperty because all or...

    You can't polyfill hasOwnProperty because all or at least some of the browsers that don't support it also don't support assigning things to the Object.prototype. Here's the next best thing (more or...
  6. Replies
    10
    Views
    3,416

    The more I looked into what hasOwnProperty means...

    The more I looked into what hasOwnProperty means and why it might be useful, things became more complicated again, both for when it's available and when it's not. So for now I'm using this:

    ...
  7. Replies
    10
    Views
    3,416

    I think I've figured this out and it should also...

    I think I've figured this out and it should also work for arrays, but would be a little more cumbersome. Anyways, for objects:


    function setprops(d, c){
    var p, tmp = {};
    for(p in c){tmp[p] =...
  8. Replies
    10
    Views
    3,416

    NaN is creepy and I may have to include it. Using...

    NaN is creepy and I may have to include it. Using undefined kind of defeats the purpose because [][0] is undefined, and so is [undefined][0]. So there's no way around it without something like...
  9. Replies
    10
    Views
    3,416

    Yes, but it is in error. Or at least as I read...

    Yes, but it is in error. Or at least as I read it. It appears to me to say null === undefined, but it doesn't.

    Then again it might just mean that null == undefined, which I knew, but that's not...
  10. Replies
    10
    Views
    3,416

    To begin, the first three all appear to be === to...

    To begin, the first three all appear to be === to the empty string. Have I missed something there? (from the console):


    "" === ''
    true
    `` === ''
    true

    And I said, "that are not undefined" so...
  11. Replies
    10
    Views
    3,416

    'falsey' values that are not undefined

    Yes, I think about these things sometimes. What are the 'falsey' values that are not undefined (useful in iterating over an object when .hasOwnProperty() is either unavailable or inadvisable, or...
  12. Replies
    7
    Views
    1,891

    ...

    <!DOCTYPE html>
    <html>
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <style type="text/css">
    .a1{
    position:relative;
    font-family:Verdana;...
  13. Replies
    7
    Views
    1,891

    Here's an even better solution (NOTE: do not copy...

    Here's an even better solution (NOTE: do not copy code from a message the forum might send you, it could be corrupted, rather log on and copy from the post).


    <!DOCTYPE html>
    <html>
    <head>...
  14. Replies
    7
    Views
    1,891

    OK, this seems to do the trick (NOTE: do not copy...

    OK, this seems to do the trick (NOTE: do not copy code from a message the forum might send you, it could be corrupted, rather log on and copy from the post).


    <!DOCTYPE html>
    <html>
    <head>...
  15. Replies
    7
    Views
    1,891

    Since this is essentially the current version of:...

    Since this is essentially the current version of:

    http://www.dynamicdrive.com/dynamicindex12/lottery.htm

    Please stop attaching it to your posts.

    That said, I'm pretty sure this can be done....
  16. Don't know of anything like that out there, but -...

    Don't know of anything like that out there, but - depending upon exactly what you're looking for, should be fairly easy to come up with. I still don't fully grasp what you would like to see happen...
  17. Replies
    7
    Views
    1,891

    Could you be clearer about that please? There is...

    Could you be clearer about that please? There is no Y. And X never represents just one number.
  18. Thread: Blurry Text

    by jscheuer1
    Replies
    3
    Views
    1,791

    Looks cool to me. Perhaps new glasses (ducks)....

    Looks cool to me. Perhaps new glasses (ducks). Seriously though, I'm not seeing it in Chrome. Ah, except for the bold S in the search box. Wouldn't exactly call it blurry though, more like hairy, has...
  19. OK, best I can figure is it was the permissions...

    OK, best I can figure is it was the permissions set on the original images.txt file and/or the fact that you created it - I could have been clearer about that. The server needs read write privileges...
  20. Great! So it's working. I was very excited too...

    Great! So it's working. I was very excited too when I saw it working as expected.

    OK, just finishing up dinner here, may be busy for a bit. But I already have a good idea how to adapt this to...
  21. Replies
    7
    Views
    1,412

    Yeah sure, post the entire current code, but...

    Yeah sure, post the entire current code, but please post it in the thread where we were working on this, for continuity for us, as well as others, on both of these separate branches of coding. That...
  22. Replies
    7
    Views
    1,412

    Did you delete the images.txt file first? And I'm...

    Did you delete the images.txt file first? And I'm wondering about the path var. From what you've said it should likely be:

    $path= "flags/";

    Anyways, works fine here, and that version of PHP...
  23. Replies
    7
    Views
    1,412

    You say "links". How many links? I mean an image...

    You say "links". How many links? I mean an image as would be generated here can only have one link, but I'm guessing you may want to draw from a pool of possible links. Would those also be random? Or...
  24. Oh, and also (please still read my previous two...

    Oh, and also (please still read my previous two posts) file_put_contents (used by this code) requires PHP 5 or later. If you don't have that, I can work out something, already have a trial version...
  25. Please also read my previous message. But here's...

    Please also read my previous message. But here's more information on the $path var. It must be relative to the page that the script is functioning on and it must point to a folder on the server. It...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4