suntracker Posted May 17, 2008 Share Posted May 17, 2008 This was at the top of a page I was looking through, inside the <head> block. Anybody know what it does? <script language="javascript" type="text/javascript"> document.write('<script language="javascript" type="text/javascript" src="http://' + location.hostname + ':8880/javascript/newsfeeds.js.php"></' + 'script>\n'); document.write('<script language="javascript" type="text/javascript" src="http://' + location.hostname + ':8880/javascript/promo-flags.js.php"></' + 'script>\n'); </script> Thanks! -Austin EDIT: I realize now this may not be a PHP question (?)... sorry :[ Link to comment https://forums.phpfreaks.com/topic/106085-quick-q-what-does-this-code-do/ Share on other sites More sharing options...
wildteen88 Posted May 17, 2008 Share Posted May 17, 2008 This uses javascipt to write the following html: <script language="javascript" type="text/javascript" src="http://yoursite.com:8880/javascript/newsfeeds.js.php"></script> <script language="javascript" type="text/javascript" src="http://yoursite.com:8880/javascript/promo-flags.js.php"></script> This html then includes javascript scripts it is most probably something to do with your webhost perhaps. Unless you have added that code? Link to comment https://forums.phpfreaks.com/topic/106085-quick-q-what-does-this-code-do/#findComment-543733 Share on other sites More sharing options...
suntracker Posted May 17, 2008 Author Share Posted May 17, 2008 Hmm.. I think the webhost generated it. I have no idea what the newsfeeds or promo-flags are about so I'm going to try and remove it. Thanks! Link to comment https://forums.phpfreaks.com/topic/106085-quick-q-what-does-this-code-do/#findComment-543741 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.