Jump to content

seidanis

Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Posts posted by seidanis

  1. Hello,

    my JS knowledge is close to none, so please bare with me.
    Finding out the visitor's time zone offset was not that hard:

    [code]
    var now = new Date();
    var tzo = now.getTimezoneOffset();
    [/code]

    What I need to do now, is automatically pass "tzo" back to the server, for further processing via PHP. Passing its value onto a PHP variable would be ideal.

    Any hints please?

    Alex
  2. Hello,

     

    To make a long story short, I recently noticed that svchost.exe as LOCAL SERVICE in my Windows installation is taking up close to or more than 50% of the CPU. This started happening after I created a few virtual hosts from within the Apache conf file.

     

    The workaround to this is stop the Apache server, wait a couple of seconds and then start it again (restart won\'t do the trick). svchost.exe goes down to 0% of CPU and never rises again (until the next re-boot, that is).

     

    Any idea what causes the trouble and how I can troubleshoot it?

     

    Thanx in advance,

     

    Alex

  3. Here\'s the story:

     

    I need to look up entries from a table that fulfil the following criteria:

     

    banner=\\\"top\\\"   [\\\"banner\\\" field is set(\'top\',\'bottom\')]

    start<=date(\'U\') [\\\"start\\\" field is a unix timestamp]

    end>=date(\'U\')  [\\\"end\\\" field is a unix timestamp]

     

    However, the following query does not seem to work:

     

    \"SELECT * FROM table WHERE banner=\'top\' AND start<=\'$datenow\' AND end>=\'$datenow\'\"

     

    where $datenow=date(\'U\'). If I remove the second AND clause, it works OK. The question is: how do I look up entries in my table that fulfil the above 3 criteria?

     

    Any help would be highly appreciated.

     

    Alex

×
×
  • 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.