Php and Javascript
I just found a new way of calling a php file
You have heard about this
<script type=”text/javascript” src=”java2.js”>
</script>
The good thing is that you can also call a php file using this SRC attribute javascript just replace “java2.js” with “java2.php” like this
<script type=”text/javascript” src=”java2.php”>
</script>
The good thing is you do n’t have to mess with the design of your site with the php code as you can just call by javascript and it can be also used on plain html pages.For example ,I have a free webhosting account for my site www.freewebspace.co.nr ,to know the ip address of the visitors to my site , I will simply call my php file ip1.php which resides on this site.
Something like this
<script type=”text/javascript” src=”http://www.ramanean.com/ip1.php”>
</script>
And the only one disadvantage you have is you can’t find the referer to your site by calling the php file you have to find it by javascript only ,if you intend to find referer toyour plain HTML page.
