title: Getting the real time and date in PHP
body: <p>i am creating a webpage and i have a form inside of it. In one of my input box i want to set the current date automatically without the user inputting it. I am using the getDate() function of PHP but the problem is that people can change the date by changing their system date and time....</p>
  
  <p>I want the real date and time.</p>
  
  <pre><code>$mydate=getdate(date("U"));
  $date = "$mydate[weekday], $mydate[month] $mydate[mday], $mydate[year]";
  &lt;input value='$date'&gt;
  </code></pre>
  
  <p>Help Guys</p>