Thanks a ton for replying.
I'm a bit confuzzled as to what you're doing, but it sounds to me like you have this HTML page, and you want to call a PHP banner/advertisement script.
Yes, that is EXACTLY what I am trying to do. 🙂
I tried the frames thing earlier but that doesn't meet my requirement. And as you said, I-frame may have some compatibility problems. So, I want to stay away from frames.
I use ZoneAlarm and have disabled XP's built-in firewall. I even tried disabling ZA, but that didnt help either. So, its not the firewall. And yes, I am in a LAN environment but that should not cause any problems as I am executing things locally. 😉
Finally, the code u supplied worked and also this piece of code worked..
<?PHP
if($stream = @fopen("http://172.16.x.x/ta/owner.htm", "rb")) echo "Connected."; else echo "Could not connect.";
fclose($stream);
?>
But when i put this exact same fopen statement in my php file, Apache hangs. :mad: I also tried putting fopen yahoo.com as in ur example in my php file, and it too worked.. so, that was quite a relief 🙂 and that's exactly what I need, but still, why isn't fopen able to open a file on my OWN computer by giving absolute address i.e. 172.16......
Regarding putting the javascript code in my HTML file, to call the php file, can you direct me to a site where I can ask the same?