PDA

View Full Version : Flash to PHP to Flash + sandbox


Reflex
07-25-2004, 06:04 AM
I have a Flash movie (movie.swf) that calls a php file (script.php) when a user clicks a button in the Flash movie during run-time.

The code within the php file (script.php) looks like this:

?php
$dataURL = "http://headlines.internet.com/internetnews/wd-news/news.rss";
readfile($dataURL);
?>


This above code grabs the xml file at the above url and passes it back to Flash.

What I am trying to find out is whether or not I can add to the php code above so that it will strip any HTML tags that are within the XML (like <p></p><b></b><br>, etc, etc).

Perhaps I need to use something like strip_tags() I believe its called.

Any assist will be greatly appreciated.

Thanks,
Stephen.

aeon
07-25-2004, 06:43 AM
Yes strip_tags() removes html tags

Reflex
07-25-2004, 08:33 AM
so what would my new code be aeon (sorry - new to php) thanks.