Jump to content

MysticCoder

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

MysticCoder's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. When a html page calls a php script it can post variables to that script. Can a included php script have variables posted to it in the same manner.
  2. How would you pass values to the included script? Thanks,
  3. I am trying to get the server date in the form dd/mm/yyyy with the intention of using it as a parameter to another php script.
  4. How do you store the echoed value in a html variable?
  5. Or are you trying to display "today's date at the server", or ... That is what i'm exactly trying to do, sorry for not clarifying things.
  6. Php, I have a php script been called by a javascript.
  7. I tried but am having no joy in getting it to display today's date. The original script shown below works but it displays elements I am not interested in. // Get server date $mydate = date("U"); // date("U"); // // Get Timezone offset $myoffs = date("Z") - $myServerOffset; // Adjust offsets for local machine //print "var tzoffset =  $myoffs + (new Date().getTimezoneOffset()*60);"; print "var tzoffset = $myoffs +(new Date().getTimezoneOffset()*60);"; // Set JavaScript variable to your server time as seen from client machine's location. print "var servertimeOBJ=new Date(($mydate+tzoffset)*1000);";
  8. Hi, How do I retrieve the server's date and time in the format dd/mm/yyyy? Thanks, Boulent
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.