943,663 Members | Top Members by Rank

Ad:
Feb 4th, 2009
0

Help needed in opening an url in another website !!

Expand Post »
Hi All,

First of all i'll tell you what i m doing ....

I ve a blog at http://myblog.blogspot.com/ ... now ... i am going to make simple website for myself and i want my blog to open inside my website ....

i tried using

php Syntax (Toggle Plain Text)
  1.  
  2. <?php
  3. $remote = fopen("http://myblog.blogspot.com/", "r");
  4. fpassthru($remote);
  5. ?>

but this is not working properly .... i mean it is opening the blog in my web page but its not looking good .... in terms of my website style ....

For example .... its overriding my website's css and implementing the css and style of the blog ..... how do i fix it ?

Please help ......

Thanks a million in advance !!!!
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
jyotiu is offline Offline
33 posts
since Sep 2008
Feb 6th, 2009
0

Re: Help needed in opening an url in another website !!

Hi,
You are trying to keep whole page inside your page. So it's overriding because that page is just shown inside your page and that page contents all of the css style which the remote page have.
So Try other method so that you can access the content of that web.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
jagadishwor is offline Offline
11 posts
since Nov 2007
Feb 10th, 2009
0

Re: Help needed in opening an url in another website !!

you could use inline frames in your website... but the major disadvantage is frames are not considered as SE friendly...
Reputation Points: 10
Solved Threads: 2
Newbie Poster
seanansari is offline Offline
15 posts
since Jan 2009
Feb 10th, 2009
0

Re: Help needed in opening an url in another website !!

Have you considered using php include?
Reputation Points: 10
Solved Threads: 3
Newbie Poster
Minolwen is offline Offline
20 posts
since Feb 2009
Feb 22nd, 2009
0

Re: Help needed in opening an url in another website !!

PHP includes are the best option. i-frames is not the best idea as Google doesn't index them well.

<?php include"includes/header.php;"?>
Reputation Points: 10
Solved Threads: 0
Newbie Poster
scottlpool2003 is offline Offline
4 posts
since Oct 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Drop Down Menu Question
Next Thread in HTML and CSS Forum Timeline: Is there anybody know about the YUI library





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC