Re: Help with parse error
| From: | Kae Verens | Date: | Wed, 20 Aug 2003 07:29:16 +0000 |
| Subject: | Re: Help with parse error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-160141@lists.php.net to get a copy of this message | ||
James Johnson wrote:
Hi, I'm trying to figure out this error I'm getting in my code: Parse error: parse error in /home/.paco/campuscb/AdPayment.php on line 9 This is the code on line 9: $sDate = date('Y-m-d',time());if you're looking for the current time, then this is sufficient: $sDate=date('Y-m-d'); the error is most likely on a line above that one. I've never seen date() called in the way you did, though - the documentation (http://php.net/date) says that time() is the default for the second parameter, so is never actually needed. Kae