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!
Thats because the tags are being parsed in your browser. <title></title>, <description></description> etc which are invalid HTML tags but still caught.
It works alright.
But it is not working for me.In my server its not displaying anything.I am under a proxy and running my own apache in winxp.It should show me the dialogue box to connect to the external site,I guess.is not it?it actually does not showing me anything.
Anyhelp
Dont know how it works on a proxy but many hosts have disbled remote file connections directly. IF CURL Library is installed and configured you can try this :
Replace file_get_contents($source) with emulate_file_get_contents($source)
and add this function :
Warning: file_get_contents(http://developers.sun.com/rss/sdn.xml) [function.file-get-contents]: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in D:\Saumya\PHP\ExternalXml_RSS\JavaForumTest.php on line 7
Fatal error: Maximum execution time of 30 seconds exceeded in D:\Saumya\PHP\ExternalXml_RSS\JavaForumTest.php on line 7
You might want to try if you can download the file from that computer with a regular browser.. (This way we know the problem is with the apache/php config or a more general one)