Retrieving Data (text) off remote site

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
NorthPilot06
Forum Newbie
Posts: 3
Joined: Sun Oct 02, 2005 4:20 pm

Retrieving Data (text) off remote site

Post by NorthPilot06 »

Hey everyone,

I have a dilemma, and I have no clue where to start. The basics of my idea are as follows: I am making a website which will cover all of the US ski resorts in great detail, along with a rating system and a ski store. Part of my in-depth coverage of the ski resorts includes the requirement to put current weather/ski conditions on the website. This data, which is on the ski resort's own website, would have to be recovered by my website about every 6-12 hours (there goes the lightbulb :idea: in my head...crons - and of course I would provide a link back to the source of the information). However, I'm sure that PHP would have to be utilized in order to describe what text to select, and I truthfully do not have a clue how to do it :roll: I'm pretty sure that it can be done :P

I'll provide you all with a quick example: For my Snowshoe page, I would have to recover the current weather from their website. The information is located on this page: http://www.snowshoemtn.com (Right-hand side, halfway down the page). I am just in need of some way to get that information onto my website 8)

Thanks in advance!
ruchit
Forum Commoner
Posts: 53
Joined: Mon Sep 26, 2005 6:03 am

Post by ruchit »

use fget to retrieve the source code of the page from the other website... look for patterns in this code (u'll sure find one)... wipe off the dirt... & u have it
pilau
Forum Regular
Posts: 594
Joined: Sat Jul 09, 2005 10:22 am
Location: Israel

Post by pilau »

ruchit wrote:use fget to retrieve the source code of the page from the other website... look for patterns in this code (u'll sure find one)... wipe off the dirt... & u have it
Or pursue those websites to use RSS feeds 8)
Post Reply