New to PHP: Error in code?

Discussion in 'PHP' started by TheCarlisle, Apr 7, 2011.

  1. #1
     <?php  if ( is_singular() && get_option( 'thread_comments' ) )
            wp_enqueue_script( 'comment-reply' );
     
        wp_head();
     
        wp_get_archives('type=monthly&format=link');
    ?>
    PHP:
    I apologies if this question is a bit silly, but here it is: that's the code I'm using in my Wordpress index file, but my IDE Aptana says that this is wrong? I can't find anything wrong here. Can anyone confirm this?

    P.S. As you probably can see, I'm new to this PHP thing :)
     
    TheCarlisle, Apr 7, 2011 IP
  2. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    #2
    nothing seems wrong to me as well
    use phpdesigner or zend ide
     
    crivion, Apr 8, 2011 IP
  3. TheCarlisle

    TheCarlisle Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Okay, thanks for the reassurance :)
    I'll try out those IDEs mentioned above - Aptana is a bit sluggish for my taste.
     
    TheCarlisle, Apr 8, 2011 IP