Jump to content

Quick Q: What does this code do?


suntracker

Recommended Posts

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

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?

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.