Jump to content

file_get_contents or iframes?


EmperorJazzy

Recommended Posts

When a link is clicked on one page (listing page), and I want to open it in a new window, I'd like to have a title section across the top say height=30, and the linked web page displayed below. I've been researching and have found that both file_get_contents or iframes could do the job. I briefly attempted iframes src=x but after loading, the web page takes over the browser and the title section disappears.

 

Can I use file_get_contents to display the web page as it's written below the title section? I've seen someone mention using a DIV for it. Could someone provide some guidance?

 

BTW: the title section is going to be used to allow the user to select an alert to be set in my database. But also have the option to 'hide'. Thanks!

Link to comment
https://forums.phpfreaks.com/topic/259161-file_get_contents-or-iframes/
Share on other sites

The function file_get_contents() is used to get the content of a webpage. But if you use the function it will not work anymore action on the result page.

I mean after displaying the contents of an webpage suppose that there will be some links & if you click on that link it won't work.... Even i suggest you to use <iframe> option to do this.

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.