Line Debug Request

Discussion in 'PHP' started by WordpressSEO, Aug 7, 2011.

  1. #1
    var identURL = "about:blank"
    Code (markup):


    What is wrong with the above line of code? What needs to seperate the about:blank from the quotations
     
    Last edited: Aug 7, 2011
    WordpressSEO, Aug 7, 2011 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,899
    Likes Received:
    4,555
    Best Answers:
    123
    Trophy Points:
    665
    #2
    No semicolon on the end?
    What are you trying to achieve other than creating a variable (within a class I presume)
     
    sarahk, Aug 7, 2011 IP
  3. WordpressSEO

    WordpressSEO Peon

    Messages:
    74
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Sorry don't have the full code in front of me but will add more info when I get back to my computer tonight but it is a small portion of a larger snippet. Code works fine when added directly in header but trying to convert it to plugin. If this helps.....in textwrangler the About:blank portion turns black. Wasn't sure if it just needed an apostrophe. My php knowledge is minimal at best
     
    WordpressSEO, Aug 8, 2011 IP
  4. The Webby

    The Webby Peon

    Messages:
    1,852
    Likes Received:
    30
    Best Answers:
    1
    Trophy Points:
    0
    #4
    I have no idea what exactly you are trying to do there.. Is it PHP or javascript?

    If you are trying to define a variable in PHP then instead of
    var identURL = "about:blank";
    PHP:
    in PHP 4 (provided its a class level variable, use
    var $identURL = "about:blank";
    PHP:
    in PHP 5.x, use
    $identURL = "about:blank";
    PHP:

    If you are trying to define a constant
    use
    define("identURL", "about:blank");
    PHP:
     
    Last edited: Aug 8, 2011
    The Webby, Aug 8, 2011 IP
    exodus likes this.
  5. ausrixy

    ausrixy Peon

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #5
    always remember to add the semi colon on the end of your lines.
     
    ausrixy, Aug 10, 2011 IP