Enabling Tradedoubler Link for PHP Site

Discussion in 'Coding Help' started by davidbrett, Apr 18, 2011.

Tags:
  1. davidbrett

    davidbrett New Member

    Hi All,

    I am having difficulty converting a Tradedoubler Script in a PHP enabled Script for one of our sites.

    Here is the code
    <script type="text/javascript">
    var uri = 'http://impie.tradedoubler.com/imp?type(js)g(19073644)a(1765141)' + new String (Math.random()).substring (2, 11);
    document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset=""></sc'+'ript>');
    </script>

    I have tried adding \" instead of " in all instances.

    Should I also do the same for the single quotes. ie ' becomes \'

    Any help would be greatly appreciated.
     
  2. mneylon

    mneylon Administrator Staff Member

    Are you using smarty of just plain PHP?
     
  3. davidbrett

    davidbrett New Member

    I didn't code the site myself so I am not 100% sure. I think it is plain PHP.
     

Share This Page