[PHP-WIN] Problems with Unix timestamp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey folks, simple question for you..

I'm trying to search through a page (with fopen) for a Unix timestamp (on Windows).
Simply doing



while(!feof($fd))
{
$line = fgets($fd, 4096); if(eregi(time(), $line) ...



will not work. Upon further investigation, I could not get die(time()) to work, nor $now=getdate() die($now[0]);


Any ideas?? This works on Linux

Having said that, I tried the following work-around:

 $now = explode(" ", microtime());
 $search = substr($now[1], 0, 7);

microtime returns the correct time, however it's still not working quite right.
It would be a lot simpler if time() actually returned something for me :)


Thanks in advance,
~Steve



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux