Advertisement

12.05.2004 at 09:40PM PST, ID: 21231395
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.2

Setting clock ahead with php

Asked by weikelbob in PHP Scripting Language

Tags: , ,

Hello, I have pages that display the Date and Time with Javascript and I need to change the time so that it runs 2 hours later than my time no matter who is looking at the site (for example, people in Japan)

How can I use php to do this?


Here's the code:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Bio-Med Proofreading, a Leading edge English Language Proofreading Company</title>



<script language="JavaScript" type="text/JavaScript">
<!--

function clock(){
d = new Date();
day = d.getDay();
mon = d.getMonth();
date = d.getDate();
year = d.getFullYear();
hr = d.getHours();
min = d.getMinutes();
sec = d.getSeconds();

if(hr==0){ap=" AM";hr=12}
else if(hr <= 11){ap=" AM"}
else if(hr == 12){ap=" PM";hr=12}
else if(hr >= 13){ap=" PM";hr-=12}

if(min <= 9){min="0"+min}
if(sec <= 9){sec="0"+sec}

zday=new Array();
zday=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];
zmon=new Array();
zmon=["January","February","March","April","May","June","July","August","September","October","November","December"];

document.getElementById("clockDiv").innerHTML=" "+zmon[mon]+" "+date+",  "+hr+":"+min+":"+sec+ap+""
}




function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_controlSound(x, _sndObj, sndFile) { //v3.0
  var i, method = "", sndObj = eval(_sndObj);
  if (sndObj != null) {
    if (navigator.appName == 'Netscape') method = "play";
    else {
      if (window.MM_WMP == null) {
        window.MM_WMP = false;
        for(i in sndObj) if (i == "ActiveMovie") {
          window.MM_WMP = true; break;
      } }
      if (window.MM_WMP) method = "play";
      else if (sndObj.FileName) method = "run";
  } }
  if (method) eval(_sndObj+"."+method+"()");
  else window.location = sndFile;
}
//-->
</script>
<style type="text/css">
<!--
a:link {
      color: #0000CC;
}
a:visited {
      color: #0000CC;
}
a:hover {
      color: #000000;
}
a:active {
      color: #000000;
}
.style3 {
      font-family: Arial;
      font-size: 14px;
}
body {
      background-image: url(background/tan-stitched.gif);
      margin-left: 0px;
      margin-top: 0px;
      margin-right: 0px;
      margin-bottom: 0px;
}
.style11 {color: #666666; font-weight: bold; font-size: 24px; font-style: italic; font-family: Arial; }
.style17 {color: #333333}
.style25 {      font-family: Verdana;
      font-weight: bold;
}
.style26 {
      font-size: 9px;
      font-weight: bold;
}
.style30 {      font-family: Verdana;
      font-size: 14px;
}
.style40 {font-size: 24px}
.style41 {font-weight: bold; font-size: 24px; font-family: Arial; color: #666666;}
.style42 {
      font-weight: bold;
      font-family: "Times New Roman", Times, serif;
      font-size: 30px;
      color: #000000;
      font-style: italic;
}
-->
</style></head>

<body onload="clock();setInterval('clock()',1000)">



<table width="95%"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><div align="center"><img src="header/header2.jpg" width="780" height="125" border="0"></div></td>
  </tr>
</table>
<table width="95%"  border="0" align="center" cellpadding="0" cellspacing="2">
  <tr>
    <td width="32%" rowspan="2" valign="top"><div align="center">
      <table width="100%"
    border="0" cellspacing="0" cellpadding="20">
        <tr>
          <td height="42" valign="top" ><h2 align="center"><span class="style30">This is our time, Pacfic Standard Time, USA: </span>
            </h2>
              <div id="clockDiv">
                <h2 align="center">&nbsp;</h2>
            </div></td>
        </tr>
      </table>
      <p><img src="menu/service.gif" width="213" height="267" border="0" align="top" usemap="#Map">
              <map name="Map">
                <area shape="rect" coords="25,209,191,234" href="samples.html">
                <area shape="rect" coords="26,29,192,54" href="index.html" onMouseOver="MM_controlSound('play','document.CS1101967393937','file:///C|/Documents%20and%20Settings/Owner/My%20Documents/My%20Music/From%20Internet/tick2.wav')">
                <area shape="rect" coords="25,65,191,90" href="service.html">
                <area shape="rect" coords="25,139,191,164" href="turnaround.html">
                <area shape="rect" coords="25,176,191,201" href="privacyguarantee.html">
                <area shape="rect" coords="24,101,190,126" href="price.html">
              </map>
        </p>
    </div></td>
    <td width="68%" height="58" valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="58" valign="top"><pre class="style3"><span class="style11"><span class="style40"><img src="images/2.gif" width="40" height="40" align="absbottom"></span></span><span class="style41"><span class="style40"><span class="style42">   Our Services</span></span></span><span class="style11"><span class="style17">
<img src="images/BLUE-BAR.gif" width="240" height="3"></span></span></pre>
        </td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><div align="left">
        <p style="line-height: 150%"><span class="style3">BioMed Proofreading is a leading English language proofreading company located in the USA, focused on biomedical manuscripts, and made up of medical and life science professionals who are also authors and referees for peer-reviewed biomedical journals. All members of our staff hold either a PhD, MD, or both degrees, and are all native English speakers. Our goal is to provide competent professional English proofreading and editing services for biomedical researchers and clinical doctors around the world who are not native English speakers. Our services are fast, convenient (available seven days a week, 18-hour on-line response every day), accurate, affordable, and easy to use. We provide you with a competitive advantage, because our professional editors know how to structure your scientific manuscript so that your research will have the maximum impact. We check through the text, and make correctio<img src="images/doctor3-jpg.gif" width="133" height="200" align="right">ns or accurate revisions with attention to errors of grammar, spelling, punctuation, capitalization, inaccurate terms, consistency, logic of presentation, English usage, style and even spacing, in either British English or American English. In addition, we have the expertise to provide authors with practical comments on how to write more successful research manuscripts &nbsp;(<a href="samples.html">Seeing is believing</a>). In one word, you write it, we finish it.</span></p>
    </div></td>
  </tr>
</table>
<table width="95%"  border="0" align="center" cellpadding="0" cellspacing="20">
  <tr>
    <td><P align="center" class="style25">&nbsp;</P>
        <P align="center" class="style25">CONTACT US:</P>
        <div align="center">
          <pre align="center"><FONT face="Arial, Helvetica" size=2>For questions regarding our services and manuscript submission: <FONT
face=Arial color=#000099><A
href="mailto:info@bmp-us.net">info@bmp-us.net</A></FONT><FONT
face=Arial>.</FONT></font>
<FONT
face="Arial, Helvetica" size=2>For question regarding payment: <A
href="mailto:biomed@bmp-us.net">biomed@bmp-us.net</A>.</font><FONT size=2> </FONT>
<FONT face=Arial size=2>Fax: 1-801-858-7952.
</FONT><FONT face="Arial, Helvetica" size=2>Mail address:<B><I> BioMed Proofreading,</I></B> P.O. Box 606041, Cleveland, Ohio 44106-9998, USA
.
</FONT><span class="style26" style="font-family: Arial"><A name="Certificate Number">Certificate Number</A>: 1383229, State of Ohio, United States of America
Copyright (C) 2003-2004, BioMed Proofreading. All rights reserved.</span></pre>
      </div></td>
  </tr>
</table>
<EMBED NAME='CS1101967393937' SRC='file:///C|/Documents%20and%20Settings/Owner/My%20Documents/My%20Music/From%20Internet/tick2.wav' LOOP=false
AUTOSTART=false MASTERSOUND HIDDEN=true WIDTH=0 HEIGHT=0></EMBED>
</body>
</html>


Start Free Trial
[+][-]12.06.2004 at 02:02AM PST, ID: 12752593

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.06.2004 at 02:05AM PST, ID: 12752610

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.06.2004 at 02:07AM PST, ID: 12752624

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.06.2004 at 02:24AM PST, ID: 12752710

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.06.2004 at 02:28AM PST, ID: 12752730

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.06.2004 at 08:39AM PST, ID: 12755631

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.06.2004 at 08:59AM PST, ID: 12755865

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.06.2004 at 09:05AM PST, ID: 12755934

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.06.2004 at 09:52AM PST, ID: 12756341

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.06.2004 at 10:30AM PST, ID: 12756725

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.06.2004 at 10:31AM PST, ID: 12756741

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.07.2004 at 01:27AM PST, ID: 12762025

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.07.2004 at 07:29AM PST, ID: 12764725

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.07.2004 at 08:39AM PST, ID: 12765595

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.07.2004 at 09:20AM PST, ID: 12766077

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.07.2004 at 09:35AM PST, ID: 12766246

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: PHP Scripting Language
Tags: php, standard, time
Sign Up Now!
Solution Provided By: Squinky
Participating Experts: 2
Solution Grade: A
 
 
[+][-]12.07.2004 at 10:48AM PST, ID: 12766915

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.07.2004 at 10:49AM PST, ID: 12766924

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.07.2004 at 11:48AM PST, ID: 12767498

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.07.2004 at 12:25PM PST, ID: 12767921

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.07.2004 at 01:15PM PST, ID: 12768365

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.07.2004 at 04:46PM PST, ID: 12769725

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.07.2004 at 06:02PM PST, ID: 12770078

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.07.2004 at 06:03PM PST, ID: 12770082

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.07.2004 at 06:55PM PST, ID: 12770288

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.08.2004 at 02:50AM PST, ID: 12772066

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32