From 1 page to many pages

Hello and thank you in advance for taking the time to answer my question -

If I have a page on my website full of information - how can i give someone else a small
bit of code that by placing this code on their website they can display my page…and as I
update my page, theres will update as well?

Thank you!

Hi cmyers1969,

You can give this code:

[php]

[/php]

hope this will help you… :slight_smile:

Hi,

alternately u can achieve it though curl() as well like
[php]
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, “http://www.google.com”);
curl_setopt($ch, CURLOPT_HEADER, TRUE);
curl_setopt($ch, CURLOPT_NOBODY, TRUE); // remove body
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
$head = curl_exec($ch);
$code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if($code == 200) {
echo $head;die();
} else {
echo " Error Message";die();
}
[/php]

Cheers,:slight_smile:

Hello sarthakpatel

thank you for the reply - I am familiar with

Hi cmyers1969,

If you don’t want to do it with

So, if you’re not comfortable with advanced javascripting, I would suggest you to use iframes…

Sponsor our Newsletter | Privacy Policy | Terms of Service