# Getting Info off an HTML page into Flash

**URL:** <https://forum.kirupa.com/t/getting-info-off-an-html-page-into-flash/17453>\
**Category:** Uncategorized\
**Created:** [April 5, 2003, 1:11pm UTC](https://forum.kirupa.com/t/getting-info-off-an-html-page-into-flash/17453 "2003-04-05T13:11:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RageW0lf](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@RageW0lf](https://forum.kirupa.com/u/RageW0lf)\
**Post date:** [April 5, 2003, 1:11pm UTC](https://forum.kirupa.com/t/getting-info-off-an-html-page-into-flash/17453/1 "2003-04-05T13:11:33Z")

</div>

This is similar to the weather feed question that is floating about… but it should be pretty simple for one of you PHP boffins.

I am trying to get some news off an HTML page and I want to display the headlines in Flash (the headlines are displayed on the HTML page).

How do I use PHP or another method to get what is written on this HTML to be displayed in my Flash document?

PS. Please bare in mind I have no skills whatsoever in PHP ☹

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 7, 2003, 6:36pm UTC](https://forum.kirupa.com/t/getting-info-off-an-html-page-into-flash/17453/2 "2003-04-07T18:36:01Z")

</div>

Obviously, there are quite a few ways to do this… an easy way…

1. Grab a content retrieval script off of [Resource Index or [url=http://www.hotscripts.com/PHP/Scripts\_and\_Programs/Web\_Fetching/]hotscripts](http://php.resourceindex.com/Complete_Scripts/Content_Retrieval/).
2. Have the php script format the output into a name/value pair string or into an xml format
3. Call loadVariables to load the data into flash

Please let me know if you need more help.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 8, 2003, 9:30am UTC](https://forum.kirupa.com/t/getting-info-off-an-html-page-into-flash/17453/3 "2003-04-08T09:30:56Z")

</div>

Hi, thanks a lot for your response. There are some pretty cool scripts and they are certainly a BIG push in the right direction.

All of what you say there, even for me, is pretty straight forward apart from the PHP (the hardest bit 🙂 ) - obviously as I have hardly ever used it.

The program that I think is most suitable in my situation is Snoopy 0.94 as it allows u to get specific information. Right now I am trying to get the weather - weatherport does it all for you but allows you to type in a zip code, I ONLY want to display the weather for Oxford, Uk - and only for today !

On Yahoo the following link : [http://weather.yahoo.com/forecast/UKXX0106\_f.html](http://weather.yahoo.com/forecast/UKXX0106_f.html)

shows the weather forecast today for oxford:

**Today: Partly cloudy. High 51F. Winds ENE at 5 to 10 mph.**

basically all I want from that is the \*\*\*“partly cloudy. High 51F” \*\*\* Part.

Reading the README file with Snoopy it seems that the command I need to use is **fetchtext($URI)**

described as _**This behaves exactly like fetch() except that it only returns the text from the page, stripping out html tags and other irrelevant data.**_

The problem I have now is writing the PHP script to get this info, and only the info I want which I said above.

I have no idea how to even go about that, can anybody help me with that?

Thanks for all the help already and anymore that follows.

PS. [Weather.com](http://Weather.com) also shows weather for Oxford Uk and has some scripts developed for it specially, so if anybody has used one of those scripts previously and knows how I can get it working obviously I don’t mind using that instead!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 8, 2003, 9:45am UTC](https://forum.kirupa.com/t/getting-info-off-an-html-page-into-flash/17453/4 "2003-04-08T09:45:08Z")

</div>

Here is the snoopy 0.94 file if anybody wants to have a look at it.
