php - Embed data in a page from a different website -


i have problem know many people must know answer to, afraid still bit of beginner these things.

i have been asked make data on of pages on 1 of our sites, available 1 of our sites (different servers) data pulled mysql server using php.

i have been told of iframe think looking is

<?php $othersite = file_get_contents('http://www.othersite.com'); echo $othersite; ?> 

i know possible because there file on our site simple table populated php database table (connection database include file credentials) , has been shared different site has somehow embeded page , displays data live our table.

unfortunaley person set not available.

is file_get_contents answer looking for?

any appreciated.

cheers al.

it depends lot on how want integrate, recomment using html <iframe> purpose. clean integration, clean security separation.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -