[PHP] Putting PHP info into a variable

2001-09-19 Thread Power Programmer

How do I store the phpinfo() data into a variable so I can mail it to
myself?


Thanks

Randy

-Original Message-
From: ZeNDeR-X [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 19, 2001 8:59 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Odp: Returning a specific 'record' from an XML file


hi ;)
it's pretty simple to do something like this using the DOM functions that
handle XPath expressions.
when you have that xml loaded in a variable $xml_source all you have to do
is:
$doc=xmldoc($xmlsource);
$xpath_ctx = xpath_new_context($doc );
// show all objects
echo Xpath All;
$result = xpath_eval($xpath_ctx, '//child::*');
print_r($result); // this will show you the structure of the output
// all books objects
$result = xpath_eval($xpath_ctx, '//book::*');
print_r($result);
// book number one:
$result = xpath_eval($xpath_ctx, '//book[1]');
print_r($result);

xpath is much more powerful than that and i'm pretty sure you can use it the
way you want it.
some more info about XPath is available here:
http://www.zvon.org/xxl/XPathTutorial/General/examples.html

Good Luck with that ;)
ZeNDeR-X

-= www.ipro.pl =-



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.281 / Virus Database: 149 - Release Date: 9/18/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.281 / Virus Database: 149 - Release Date: 9/18/2001


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Putting PHP info into a variable

2001-09-19 Thread Alexander Skwar

So sprach »Power Programmer« am 2001-09-19 um 12:23:48 -0700 :
 How do I store the phpinfo() data into a variable so I can mail it to
 myself?

use output buffering

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.digitalprojects.com   |   http://www.iso-top.de
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
Uptime: 4 hours 29 minutes

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]