Thursday, 15 January 2015

Is the time format different between windows PHP and linux PHP? -



Is the time format different between windows PHP and linux PHP? -

i'm not web developer, inherited php (version 5.2.13) site on linux vm.

the first thing asked set php site onto iis server. did that, users of site saying when on linux server, times include seconds. on windows box, displayed times go downwards minutes. have not changed in code base of operations create happen. did have set own php ini file.

is there in configuration cause that? or fundamental difference between php implementations between 2 operating systems? or, more importantly suppose, can resolve (hopefully not requiring code alter because have no thought i'm doing here).

here's illustration section believe displays i'm talking about.

<?php require '../dbconnect.php'; ?> <a href="index.php">back index</a><p> <form method="get" action="historylookup.php"> <p>xuid: <input type="text" name="xuid2"> <input type="submit" name="submit" value="search"> </p> </form> <table class=queries border=1> <tr class=head> <th class=>time</th> <th class=>historyid</th> <th class=>status</th> </tr> <? $xuid = $_get['xuid2']; $query = "select [eventdatetime] ,[historyid] ,case when [eventtype] = 2 'launch' else 'completed' end [webstats].[dbo].[reducedhistorydata] xuid = $xuid order eventdatetime asc"; $result = mssql_query($query); while($row = mssql_fetch_array($result)){ $row_color = ($row_count % 2) ? $color1 : $color2; ?> <tr class=results> <td class="<? echo $row_color ?>"><? echo $row['0'] ?></td> <td class="<? echo $row_color ?>"><? echo $row['1'] ?></td> <td class="<? echo $row_color ?>"><? echo $row['2'] ?></td> </tr> <? $row_count++; } ?> </table>

php linux windows datetime iis

No comments:

Post a Comment