When having trouble with a PHP function,
look it up in the online manual.
Result: "Sorry, but the function gettime is not in the online manual. Perhaps you misspelled it, or it is a relatively new function that hasn't made it into the online documentation yet.", with some suggestions. The best appear to be:
- gettimeofday
- time
- getdate
- gmstrftime
What were you expecting the function gettime() to do?