Jump to content

Embed web page from another domain.


mgs019

Recommended Posts

Hi,

 

I am trying to embed the resulting html page from a php page on another server in a website. I want it to be hardcoded so search engines can find it so i will ideally use a <?php include ?> type thing.

 

I have an ajax method which uses a http proxy php page to fetch the page and update a <div> and I know I could chop that up and skip the javascript bit.

 

Is there an easy way to do this? I want the imported page to be processed rather than as php as there is an sql database query thing going on and I want to display the results on any old website without giving out my db password etc.

 

Any ideas would be great.

 

Thanks,

 

Martin

Link to comment
Share on other sites

I have a .php/sql information page on my server which I want people to be able to embed in their site. ideally they would just have to add a line or two of code and maybe a file or two to their site and my page will be displayed in an SEO friendly way. I.e. it will be visible in view source.

 

The password thing is because I know that the easy way to do this is give a .php page with the sql database stuff in it. I think that my database would last about 3 seconds if I did this though.

 

Does this make sense?

 

Martin

Link to comment
Share on other sites

if you want to embed parts of another page into a local page and have that local page readable for search engine spiders, you'll probably need to look at the PHP curl functions for every site that is going to pull in the info. however, curl is often not compiled into PHP or it is disabled by the host.

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.