Jump to content

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?

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.