Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Collect data (text) from another webbsite

Status
Not open for further replies.

Busken

Technical User
Dec 14, 2004
19
SE
Hi,
i start everyday at work checking NordPool (a stock market) but i want to put the numbers on my own customized start page.
Now to the problem. I´m not that good at php, but maybe i can read up on it and solve this problem.
I want to take a text from and present it on my page.
Any ideas?
I have looked for the numbers (todays price) on a rss-feed but without luck.
I hope you understand my question despite my, sometimes, poor english.

Best regards, Erik.
 
assuming it is allowed by the nordpool site, you could simply use this:

Code:
$contents  = file_get_contents('[URL unfurl="true"]http://wwwdynamic.nordpool.com/marketinfo/elspot/stockholm/elspot.cgi');[/URL]

echo $contents;

there are all sorts of reasons why this might not work but the first step is to see whether you _can_ get the contents of the page into a php variable.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top