lime icon

Phosphorus and Lime

A Developer's Broadsheet

This blog has been deprecated. Please visit my new blog at klenwell.com/press.
XML: Google Groups Atom XML Converted to Array
Google Group ATOM feed: http://groups.google.com/group/comp.lang.php

Array produced by my PHP XML parser:

Array
(
[FEED] => Array
(
[VERSION] => 0.3
[XMLNS] => http://purl.org/atom/ns#
[TITLE] => Array
(
[MODE] => escaped
[TYPE] => text/html
[DATA] => comp.lang.php Google Group
)

[TAGLINE] => Array
(
[MODE] => escaped
[TYPE] => text/html
[DATA] =>
PHP, server side scripting.

)

[LINK] => Array
(
[HREF] => http://groups.google.com/group/comp.lang.php
[REL] => alternate
[TITLE] => comp.lang.php
[TYPE] => text/html
)

[MODIFIED] => Array
(
[DATA] =>
2005-10-06T01:17:30Z

)

[GENERATOR] => Array
(
[URL] => http://groups.google.com
[VERSION] => 1.99
[DATA] => Google Groups
)

[INFO] => Array
(
[MODE] => xml
[TYPE] => text/html
[DIV] => Array
(
[XMLNS] => http://www.w3.org/1999/xhtml
[DATA] => This is an Atom formatted XML
site feed. It is intended to be viewed in a Newsreader or syndicated to
another site. Please visit the for more info.
[A] => Array
(
[HREF] => http://help.blogger.com/bin/answer.py?answer=697
[DATA] => Blogger Knowledge Base
)

)

)

[ENTRY] => Array
(
[0] => Array
(
[AUTHOR] => Array
(
[NAME] => Array
(
)

[EMAIL] => Array
(
[DATA] => kurt.krueckeb...@gmail.com
)

)

[ISSUED] => Array
(
[DATA] =>
2005-10-06T00:00:07Z

)

[MODIFIED] => Array
(
[DATA] =>
2005-10-06T00:00:07Z

)

[ID] => Array
(
[DATA] => http://groups.google.com/group/
)

[LINK] => Array
(
[HREF] => http://groups.google.com/group/comp.lang.php/
[REL] => alternate
[TITLE] => exec("ls *.*") gives unexpected output
[TYPE] => text/html
)

[TITLE] => Array
(
[MODE] => escaped
[TYPE] => text/html
[DATA] => exec("ls *.*") gives unexpected output
)

[SUMMARY] => Array
(
[MODE] => escaped
[TYPE] => text/html
[XML:SPACE] => preserve
[DATA] =>
The second line of this script
<?php
// current directory
echo getcwd() . "<br />";
print ( exec("ls *.*") );
?>
should display the names of the four files (it does in an ssh session)
which are located in public_html, but instead it displays just one
filename, that of this script.
I don't understand why?

)

)

)

)

)


Note: Google's feed will give you like 60 entries!
So note, the reference for the entry link would be:

$ARRAY['ENTRY'][0]['LINK']['HREF']