dschmitz
08 May 2011, 04:47 AM
Hi all,
My swf-file gets the date from a remote server. The following php works fine:
<?php
//
$serverdate=date("D M j G:i:s T Y");
echo "&servdatephp=".$serverdate;
//
$servertime=time();
echo "&servtimephp=".$servertime ;
?>
but only on server with central european time (CEST). How can this php be converted to output the same variables on a server with middle european time (MEST)? The following code didn't work for me:
<?php
//
$serverdate=date("D M j G:i:s T Y");
$serverdate=str_replace("MEST", "CEST", $serverdate);
$serverdate=str_replace("DST", "CEST", $serverdate);
echo "&servdatephp=".$serverdate;
//
$servertime=time();
echo "&servtimephp=".$servertime ;
?>
I'm not an expert in php, perhaps you could resolve it easely?
My swf-file gets the date from a remote server. The following php works fine:
<?php
//
$serverdate=date("D M j G:i:s T Y");
echo "&servdatephp=".$serverdate;
//
$servertime=time();
echo "&servtimephp=".$servertime ;
?>
but only on server with central european time (CEST). How can this php be converted to output the same variables on a server with middle european time (MEST)? The following code didn't work for me:
<?php
//
$serverdate=date("D M j G:i:s T Y");
$serverdate=str_replace("MEST", "CEST", $serverdate);
$serverdate=str_replace("DST", "CEST", $serverdate);
echo "&servdatephp=".$serverdate;
//
$servertime=time();
echo "&servtimephp=".$servertime ;
?>
I'm not an expert in php, perhaps you could resolve it easely?