Jump to content

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

It cant get the information from the sub site. Is there anyway to get information from the sub site? How can I use this code on sub site or I have to use another code? Please help

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

 

Link to comment
https://forums.phpfreaks.com/topic/205194-iframe-problems/#findComment-1074062
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

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.