php-windows Digest 23 Aug 2003 16:14:44 -0000 Issue 1883

Topics (messages 21217 through 21219):

Problems with Unix timestamp
        21217 by: Stephen March
        21218 by: Stephen March

please help with table
        21219 by: Thomas Edward Lawrence

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message --- 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



--- End Message ---
--- Begin Message --- bah, sorry for the spam. Was able to create my own timestamp with mktime and then do the eregi(mydate, $line), etc etc.

Thanks anyways
~Steve

Stephen March wrote:

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







--- End Message ---
--- Begin Message ---
When I write this , it will echo 1 column with 5 rows , but I want it echo 5
columns with 3 row , there are 5 colums(td) in every row(tr) , how I must
write  ,
please show me , thank you .

<table border="1" width="100%">
<?
$i = 0 ;
while ($i < 5)
{
$i++ ;
echo "<tr><td>$i</td></tr>" ;
}
?>
</table>




--- End Message ---

Reply via email to