[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]




[PHP] Permissions on File

2001-09-14 Thread Power Programmer

What permissions would I set a php file to that could only be ready by
somebody logged into the server as root but still be executed via a website?
is this possible?


Thanks

Randy

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.277 / Virus Database: 146 - Release Date: 9/5/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]




[PHP] Zend or not to Zend

2001-09-10 Thread Power Programmer

Anybody using the zend optimizer in a production environment?

Is Zend Cache worth the money?

thanks

Randy


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.268 / Virus Database: 140 - Release Date: 8/7/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]




[PHP] mcrypt

2001-08-28 Thread Power Programmer

I use mcrypt to encrypt passwords,  I saw somewhere international users had
trouble with the high ascii.  is the any functions that can convert the high
ascii to hex or something ?

Thanks

Randy

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.268 / Virus Database: 140 - Release Date: 8/7/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] mcrypt

2001-08-28 Thread Power Programmer

I looked at those and still don't know which one i should use   any ideas??

-Original Message-
From: Jason Brooke [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 6:49 AM
To: Power Programmer
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] mcrypt


 I use mcrypt to encrypt passwords,  I saw somewhere international users
had
 trouble with the high ascii.  is the any functions that can convert the
high
 ascii to hex or something ?

 Thanks

 Randy

Have a squiz here:

http://www.php.net/manual/en/ref.strings.php




-- 
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.268 / Virus Database: 140 - Release Date: 8/7/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.268 / Virus Database: 140 - Release Date: 8/7/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]




[PHP] mcrypt

2001-07-08 Thread Power Programmer

I have compiled PHP with mcrypt   and it works fine if I run a script from
the command line but through a browswer such as IE   I get the following
error:



Fatal error: Call to undefined function: mcrypt_module_open() in
/home/wheit/html/test.php on line 6


What do I need to do to be able to use these functions through a browser   I
use apache as a web server


Randy



-- 
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]




[PHP] Mcrypt Part2

2001-07-08 Thread Power Programmer

What causes this error when apache is starting?


# ./apachectl startssl
Syntax error on line 238 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server:
libmcrypt.so.4: cannot open shared object file: No such file or directory
./apachectl startssl: httpd could not be started


Libphp4.so does exist.


Thanks

Randy



-- 
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] mcrypt

2001-07-08 Thread Power Programmer


Here is an error I get now when it is doing the make  any ideas what is
going on:?



make[1]: Entering directory `/tmp/php-4.0.6'
/bin/sh /tmp/php-4.0.6/libtool --silent --mode=link
gcc  -I. -I/tmp/php-4.0.6/ -I/tmp/php-4.0.6/main -I/tmp/php-4.0.6 -I/usr/loc
al/apache/include -I/tmp/php-4.0.6/Zend -I/usr/local/include -I/tmp/php-4.0.
6/ext/mysql/libmysql -I/tmp/php-4.0.6/ext/xml/expat/xmltok -I/tmp/php-4.0.6/
ext/xml/expat/xmlparse -I/tmp/php-4.0.6/TSRM  -DLINUX=2 -DMOD_SSL=207101 -DU
SE_HSREGEX -DEAPI -DUSE_EXPAT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2   -o
libphp4.la -rpath /tmp/php-4.0.6/libs -avoid-version -L/usr/local/lib  -R
/usr/local/lib stub.lo  Zend/libZend.la sapi/apache/libsapi.la
main/libmain.la regex/libregex.la ext/mcrypt/libmcrypt.la
ext/mysql/libmysql.la ext/pcre/libpcre.la ext/posix/libposix.la
ext/session/libsession.la ext/standard/libstandard.la ext/xml/libxml.la
TSRM/libtsrm.la -lpam -ldl -lmcrypt -lltdl -lcrypt -lresolv -lm -ldl -lnsl -
lresolv
stub.lo: file not recognized: File truncated
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/tmp/php-4.0.6'
make: *** [all-recursive] Error 1




-Original Message-
From: Ben Bleything [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 3:36 PM
To: 'Power Programmer'; [EMAIL PROTECTED]; 'Keyser Soze';
[EMAIL PROTECTED]
Subject: RE: [PHP] mcrypt


Have you made sure that the php on the command line and the php that
apache is using are indeed the same one?  It's possible that apache is
looking at a module somewhere and that the php on the command line is
the binary you built.

Just a thought.
Ben

-Original Message-
From: Power Programmer [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 12:29 PM
To: [EMAIL PROTECTED]; Keyser Soze; [EMAIL PROTECTED]
Subject: [PHP] mcrypt

I have compiled PHP with mcrypt   and it works fine if I run a script
from
the command line but through a browswer such as IE   I get the following
error:



Fatal error: Call to undefined function: mcrypt_module_open() in
/home/wheit/html/test.php on line 6


What do I need to do to be able to use these functions through a browser
I
use apache as a web server


Randy



--
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]



--
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]




-- 
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]