rog1121 Posted April 28, 2011 Share Posted April 28, 2011 I was wondering if it was possible to desplay certain ares of a site with an iframe? For ex: instead of displaying this: It would display just this: Quote Link to comment Share on other sites More sharing options...
ManiacDan Posted April 28, 2011 Share Posted April 28, 2011 Have you tried looking at the Google APIs for Calendar? I'm sure there's something there. To answer your question: 1) No, you cannot simply demand a specific div from a site, it's all or nothing. 2) Once you get it ALL, you can use a programming language like PHP to pull only the DIV you want. This would unfortunately require your PHP script to log in to google calendar, however. -Dan Quote Link to comment Share on other sites More sharing options...
rog1121 Posted April 28, 2011 Author Share Posted April 28, 2011 Its not for Google Calendar its for something else. The site I'm trying to use has no API. Quote Link to comment Share on other sites More sharing options...
rog1121 Posted April 28, 2011 Author Share Posted April 28, 2011 I don't mind using PHP to do it. Just need help on this. Dont want to double post in PHP Section Quote Link to comment Share on other sites More sharing options...
ManiacDan Posted April 29, 2011 Share Posted April 29, 2011 Step 1 then is "learn PHP." Sorry. You'd use a combination of preg_match, strpos, and substr. -Dan Quote Link to comment Share on other sites More sharing options...
rog1121 Posted April 29, 2011 Author Share Posted April 29, 2011 I know a little bit of PHP I just needed some guidance actually doing it. Thanks for the reply though! Quote Link to comment Share on other sites More sharing options...
nogray Posted April 29, 2011 Share Posted April 29, 2011 Start here on how to get the page with PHP curl http://php.net/manual/en/book.curl.php Once you managed to get the page text, you would have to a lot of work to get the text you need out (by searching, spliting, replaceing, etc) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.