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.

Help Me & I will Give You 2 One-Year PR5 Backlinks.

Discussion in 'HTML & Website Design' started by iBusiness, Jul 17, 2007.

  1. #1
    Hello,

    If you help me as the following then, I will give you 2 one-year PR5 backlinks.

    What help I require is :

    I require the following 12 line PHP code to be converted to HTML, so that I can use it in my HTML website.

    Plz convert the following PHP code to HTML.

    <?php
    $browser = $_SERVER['HTTP_USER_AGENT'];
    $pattern = "[gG][oO][oO][gG][lL][eE]";
    if(ereg($pattern, $browser)) {
    echo '
    PASTE AD CODE WITHOUT ID HERE
    ';
    }
    else {
    echo '
    PASTE AD CODE WITH ID HERE
    ';
    }
    ?>
    Code (markup):
    Tnx in advance.

    iBusiness.
     
    iBusiness, Jul 17, 2007 IP
  2. x-noise

    x-noise Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    your prise is useless. and that's because PHP can't be translated in html. Because PHP is server side, while html is client side. PHP instructions are processed by the server, which serves the html to the client where it is displayed. There is no way you can do that, unless you use php pages, which allow you to do this.
     
    x-noise, Jul 18, 2007 IP
  3. it career

    it career Notable Member

    Messages:
    3,562
    Likes Received:
    155
    Best Answers:
    0
    Trophy Points:
    270
    #3
    You can modify the following code a little bit to make it work, now give me 2 PR 5 links for a year.
    
    <script type="text/javascript">
    function detectBrowser()
    {
    var browser=navigator.appName
    var b_version=navigator.appVersion
    var version=parseFloat(b_version)
    if ((browser=="Netscape"||browser=="Microsoft Internet Explorer") && (version>=4))
      {alert("Your browser is good enough!")}
    else
      {alert("It's time to upgrade your browser!")}
    }
    </script>
    
    Code (markup):
     
    it career, Jul 18, 2007 IP
  4. iBusiness

    iBusiness Banned

    Messages:
    97
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #4
    What's this code ? It's not my PHP code converted to HTML. Are you joking ?

     
    iBusiness, Jul 18, 2007 IP
  5. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #5
    x-noise: While PHP cannot be "converted" to HTML, there is often equivalent functionality in HTML/JavaScript (such as in this case)
    <script type="text/javascript">
    if (navigator.userAgent.match(/google/i)) {
        document.write('PASTE AD CODE WITHOUT ID HERE');
    } else {
        document.write('PASTE AD CODE WITH ID HERE');
    }
    </script>
    Code (markup):
    This has been tested. Can you PM/post the URLs of the two sites please and I will reply with desired link URL/text. Thanks.
     
    krt, Jul 18, 2007 IP
  6. x-noise

    x-noise Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    and if ad code is taken dinamicly from a db? usually that's the case (i work alot on such systems). what do you do then? have you noticed that "id" thingie? i tend to think that some db stuff is involved here.
     
    x-noise, Jul 18, 2007 IP
  7. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #7
    Perhaps.. my initial thought was a session ID (because of the GoogleBot matching). And this looks like something very simple, I expect the code that would be inserted is static HTML (judging by the copy/paste instructions).
     
    krt, Jul 18, 2007 IP
  8. iBusiness

    iBusiness Banned

    Messages:
    97
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Tnx krt, I will give you the detailed code so that you can understand what to do. It seems that you are the winner of the 2 PR5 backlinks. Congrats.

     
    iBusiness, Jul 18, 2007 IP