Include website in php file

Hi, I am trying to include a link to a webpage from another website to my website. How can i do this?

I tried

<?php web_include ('http://website.com/website.html') ; ?> but all commands do not load after this statement. I want to include another webpage directly in my homepage. my homepage is fully developed in php, but the other is html or php.

I also tried <?php include("http://www.othersite.com/filename.html"); ?>, but this html is not loading at all.

Possible solution: OK, this is what I use

<iframe name="FRAMENAME" src="http://website.com/dropdown.html" width="1000" style="z-index:10000" height="40" frameborder="0" scrolling="no" allowautotransparency=true></iframe>

I just include a drop down menu for my index page. My site's CMS restricts me to viewing dorpdown in IE. When I look at the dropdown.html page, I see a drop-down list, so I'm trying to use an iframe. Now, using an iframe, I also see a drop-down list in IE, but the drop-down list does not appear at the top. It is displayed behind other images on the site. How to get it on top of other images. z-index does not work for this.

+3
source share
2 answers

allow_url_include=On php.ini, , . Remote File Include (RFI). PHP, .

:

<?php include("http://www.othersite.com/filename.html"); ?>

, , :

<?php print file_get_contents("http://www.othersite.com/filename.html"); ?>

XSS. , , . , , Html Purifer .

+27

, , , .

, . :

iframe html. , .

.

, javascript , , javascript iframe.

.

0

Source: https://habr.com/ru/post/1754140/


All Articles