This is primarily for any language, including php. But I do have websites that call external scripts like this:
<html >
<head>
<title>calling external scripts</title>
<script type="text/javascript" src="http://www.somesite.com/file.js"></script>
</head>
I've never had difficulties calling javascripts from other servers. But I have been trying to experiment with scripts that are html or dhtml based. Here is a div tag that is located outside the server.
<div id='test' name='test'>
some more code here
</div>
Am I able to include this code (externally) on my webpage, even though it's from another place? I know it is easier and seemingly more logical to just embed the code like normal, but it's an interest of mine.