Hey all. I am trying to use RMBclick's ad code on my proxified pages of my phpproxy. I am getting a T_string error and some other errors when I put it in. I presume I need to forward slash out some quotes, but I don't know which. Here is the code: <!------------ RmbClick.com Ad Code ------------> <SCRIPT LANGUAGE=JavaScript> var ord=new Number(Math.floor(99999999 * Math.random())+1); document.write('<SCR'+'IPT LANGUAGE="JavaScript" '); document.write('SRC="http://m.rmbclick.com/cgi-bin/cpm/cpmad.cgi?uid=loopline&cid=teens&ord='+ord+'"></SCR'+'IPT>'); </SCRIPT> <!------------ End RmbClick Ad Code ------------> When I just put that in I get this error: parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/bloggerf/public_html/index.php on line 1348 Line 1348 is the - document.write('<SCR'+'IPT LANGUAGE="JavaScript" '); If I slash out the two single quotes like so - document.write('<SCR/'+/'IPT LANGUAGE="JavaScript" '); Then I get this error: Parse error: syntax error, unexpected T_STRING in /home/bloggerf/public_html/index.php on line 1348 I tried slashing out all of the single and double quotes but that didnt work either, still get the t_string error. Tried Google and searching here and got nowhere. What am I missing here? Any help or pointers is appreciated. Thanks in advance for your time. MAtt
Nevermind all, I got it. It is backslashes not forward and single quotes only. Anyway, here is the working code if it helps anyone. <!------------ RmbClick.com Ad Code ------------> <SCRIPT LANGUAGE=JavaScript> var ord=new Number(Math.floor(99999999 * Math.random())+1); document.write(\'<SCR\'+\'IPT LANGUAGE="JavaScript" \'); document.write(\'SRC="http://m.rmbclick.com/cgi-bin/cpm/cpmad.cgi?uid=loopline&cid=teens&ord=\'+ord+\'"></SCR\'+\'IPT>\'); </SCRIPT> <!------------ End RmbClick Ad Code ------------>