Results 1 to 3 of 3

Thread: Parse Error on Simple Time Script

  1. #1
    Join Date
    Jun 2009
    Posts
    62
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Default Parse Error on Simple Time Script

    Here is my simple script:
    PHP Code:
    <?php
    $3daystime time() + (24 60 60);
    echo $
    3daystime;
    ?>
    I get this error:
    Parse error: syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /Users/Sites/test.php on line 2
    Anybody know what's wrong?
    Thanks!
    Last edited by onestopplay; 03-14-2010 at 01:38 PM.

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    I dont think variable names can start with a number try three.
    Corrections to my coding/thoughts welcome.

  3. The Following User Says Thank You to bluewalrus For This Useful Post:

    onestopplay (03-14-2010)

  4. #3
    Join Date
    Jun 2009
    Posts
    62
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Default

    Wow I feel really stupid. Thanks so much!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •