1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

PHP href help!

Discussion in 'PHP' started by irule272, Jul 21, 2009.

  1. #1
    Hello I'm confuse on where will I put "target=_blank" on this php code. I badly need this...



    I hope someone will fix it for me... Thanks!
    SEMrush
     
    irule272, Jul 21, 2009 IP
    SEMrush
  2. jestep

    jestep Prominent Member Premium Member

    Messages:
    3,661
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    $text = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]","<a href=\"\\0\" target=\"_blank\">\\0</a>", $text);
     
    jestep, Jul 21, 2009 IP
    irule272 likes this.
  3. irule272

    irule272 Well-Known Member

    Messages:
    1,153
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    155
    #3
    Repped man!
     
    irule272, Jul 21, 2009 IP