iframe code

Discussion in 'Pay Per Click Advertising' started by nezzz, Feb 17, 2008.

  1. #1
    Hi Guys!

    I've been searching around for a browser-friendly iframe code and I know the basic iframe code, but wanted to know if someone can give me a good one to use that works for all browsers and is best to use when doing ppc advertising and using iframe for the offer. Appreciate it!
     
    nezzz, Feb 17, 2008 IP
  2. A.G

    A.G Well-Known Member

    Messages:
    2,510
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    150
    #2
    I think the normal iframe code works on 95% of browsers
    I gues only very old version of browsers don't support iframes
     
    A.G, Feb 18, 2008 IP
  3. Kaizoku

    Kaizoku Well-Known Member

    Messages:
    1,261
    Likes Received:
    20
    Best Answers:
    1
    Trophy Points:
    105
    #3
    Use php/shtml includes instead of iframes. Better browser compatibility. IE7 blocks iframes on default.
     
    Kaizoku, Feb 18, 2008 IP
  4. Chuckun

    Chuckun Well-Known Member

    Messages:
    1,161
    Likes Received:
    60
    Best Answers:
    2
    Trophy Points:
    150
    #4
    You're joking o.0 !?!

    It seems all they did in IE7 was block stuff which could possibly be used maliciously; as opposed to actually conjuring up real solutions..

    Anyway, back on topic... As Kaizoku said, use php includes

    <?php
    include('http://domain.com/path/to/file/with/advert.html');
    ...
    ?>
    PHP:
     
    Chuckun, Feb 18, 2008 IP
  5. nezzz

    nezzz Peon

    Messages:
    145
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    thank you!
     
    nezzz, Feb 21, 2008 IP
  6. meep99

    meep99 Peon

    Messages:
    785
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Very bad idea! This could lead to malicious php execution on your own server which could(can+has) lead to server compromise.

    From memory you should be using something like this http://us.php.net/function.file-get-contents.

    But never include(); for remote files that are not your own.
     
    meep99, Feb 24, 2008 IP
  7. nezzz

    nezzz Peon

    Messages:
    145
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    hmm how would the code look like then?
     
    nezzz, Feb 24, 2008 IP
  8. meep99

    meep99 Peon

    Messages:
    785
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #8
    
    <? echo file_get_contents("http://localhost/style.css"); ?>
    
    <? 
    $moo = file_get_contents("http://localhost/style.css"); 
    echo $moo; 
    ?>
    
    PHP:
    Replace the url of course :) Hope this helps.

    I am also shocked that IE7 blocks iframes? Another step in anti standards direction.
     
    meep99, Feb 24, 2008 IP