Jump to content

Iframe problems


--7

Recommended Posts

Hi,

Im a php noob. I have a problem with php_self iframe for the sub site.

I use this code

<?php
echo $_SERVER['PHP_SELF']."<br>".$_SERVER['HTTP_HOST']."<br>".$_SERVER['REMOTE_ADDR'];
?>

It is ok when i use on my site but when I put the sub site in. It didnt work.

Please help me. I appreciate all the help. Thanks

Link to comment
https://forums.phpfreaks.com/topic/205194-iframe-problems/
Share on other sites

I guess he means by sub that its from other site.

 

That's what I was thinking that he meant. That the sub file is the file he is putting in the src of the iframe

I don't think the file is on hes server. How does it matte what file it is if it will get html from url?

Link to comment
https://forums.phpfreaks.com/topic/205194-iframe-problems/#findComment-1074080
Share on other sites

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.