Working with an RSS reader with PHP, XML, and Flash With PHP, XML and Flash you can create an RSS reader that can get the contents of an RSS feed from a website. A flash file cannot read the XML file that holds the data from a remote server unless there is a policy file on that server to enable the flash file to read it. We can't expect every server to have this policy file. Hence you can use a PHP code to get the content of the remote XML file. This content is passed to the Flash movie so that you can display the content in a text area in the movie for users to read it. The XML Load() method is used to load this PHP file so that the content is got from the XML file in the remote server. Within the PHP file the remote XML file is parsed and the contents of the elements like, title, link, and description are got. These three are used to build up the content that is to be displayed in the text area so that you get a title and description. The title is linked to the actual URL of the content. A full fledged program code walkthrough is available in the website thegoldenmean.com. You can go through this tutorial and build your own RSS Feed Reader with Flash, XML, and PHP.
|
|
||
|
|||
“Amazon and the Amazon logo are trademarks of Amazon.com, Inc. or its affiliates.”
Copyright - © 2004 - 2019 - All Rights Reserved.