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
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.

Link to comment
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.