getting sorce code from another site...

  • Cae
  • Expert
  • Expert
  • User avatar
  • Joined: Feb 25, 2004
  • Posts: 734
  • Status: Offline

Post July 30th, 2004, 9:47 am

this may have been asked before, and sorry if it has...

im trying to find a way to get the HTML source from a page on another site and load it into a PHP variable... what im trying to do is get some computer news/latest blah from another site which doesnt have RSS feeds and such.

i tried doing a search on google, but im not exactly sure what to search for...
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post July 30th, 2004, 9:47 am

  • Cafu
  • Student
  • Student
  • No Avatar
  • Joined: Jul 15, 2004
  • Posts: 97
  • Status: Offline

Post July 30th, 2004, 10:48 am

I think you are looking for the fopen command:

http://us2.php.net/fopen

Code: [ Select ]
$handle = fopen("http://www.example.com/", "r");

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 125 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.