The following code loops indefinitely.
$conf = simplexml_load_file("status.xml");
foreach($conf->services->service as $service) {
print $service->params->description."\n";
foreach($service->params as $foo) {
print "$foo\n";
}
}#status.xml
<config>
<loggers>
<logger>
<id>errorlog</id>
<class>ErrorLog_ServiceLogger</class>
</logger>
</loggers>
<services>
<service>
<class>HTTP_ServiceCheck</class>
<params>
<description>OmniTI HTTP Check</description>
<uri>http://www.omniti.com</uri>
<timeout>30</timeout>
</params>
<loggers>
<logger>errorlog</logger>
<logger>debuglog</logger>
</loggers>
</service>
<service>
<class>HTTP_ServiceCheck</class>
<params>
<description>SCHLOSSNAGLE.ORG HTTP Check</description>
<uri>http://www.schlossnagle.org</uri>
<timeout>30</timeout>
</params>
<loggers>
<logger>errorlog</logger>
<logger>debuglog</logger>
</loggers>
</service>
</services>
</config>On Friday, October 24, 2003, at 01:06 PM, Andi Gutmans wrote:
Hey,
I've rolled RC1 of beta 2. Although it's a beta I thought it'd be a good idea to roll an RC so that we can at least do a sanity check to see that the package is OK and builds.
http://www.php.net/~andi/php-5.0.0b2RC1.tar.bz2 http://www.php.net/~andi/php-5.0.0b2RC1.tar.gz
Please let me know both if it works for you and if it fails. Most changes in the engine are documented in the ZEND_CHANGES file. I'll try and make sure it's updated even further for the real beta 2 release this coming week.
Thanks, Andi
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
-- George Schlossnagle -- Principal Consultant -- OmniTI Computer Consulting, Inc. -- +1.410.872.4910 x202 -- 1024D/1100A5A0 1370 F70A 9365 96C9 2F5E 56C2 B2B9 262F 1100 A5A0
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
