[PHP] Re: printf scientific notation?

2001-10-04 Thread Richard Lynch
You could roll your own... % and (int) / and round() are all you need. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

[PHP] Re: How can I simulate the login process?

2001-10-04 Thread Richard Lynch
You have to http://php.net/fopen (or http://php.net/curl for SSL page) the login page, get the headers, snarf out the cookies or whatever, generate the appropriate cookie headers to send back on the next page (and every page thereafter). Your goal is to fake out the web server into thinking

[PHP] Re: Session ID

2001-10-04 Thread Richard Lynch
Read php.ini Not sure you can set it on a site-by-site basis or within Directory in httpd.conf or not though. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time:

[PHP] Re: installation prob.

2001-10-04 Thread Richard Lynch
Did you spell apx like that or apxs like you should?... You should have ended up with a libphp.so to throw into Apache's modules directory, not a binary for /usr/local/bin... You needed that binary for cron scripts anyway, though :-) -- WARNING [EMAIL PROTECTED] address is an endangered

[PHP] Re: Apache + PHP + libswf problems

2001-10-04 Thread Richard Lynch
Try following the instructions for core dumps at http://bugs.php.net -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -

[PHP] Re: Problem with sem_get and semaphores

2001-10-04 Thread Richard Lynch
It *should* be able to... That's the whole point of the darn things. :-) Is 0x576a the correct key?... Sure PHP isn't treating that as a string or something? -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD:

[PHP] Re: PHP Warning: Unable to load dynamic library

2001-10-04 Thread Richard Lynch
Your php_ming.so has to go in the directory specified in php.ini as extension_dir It ain't gonna get found anywhere else. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a

[PHP] Re: read file twice or read into array once?

2001-10-04 Thread Richard Lynch
100 lines of 200 chars each is 2 which is 20K which is chump change for RAM... Unless you are on a super busy page on a super high-volume server, just file() it. If you're on a super busy page on a super high-volume server, file() it anyway, and then ap benchmark it to see if it's slim

[PHP] Re: Upgrade Issue

2001-10-04 Thread Richard Lynch
Require is not a function. It's a language construct. As such, it has never had a defined return value. You can try include instead, just for fun, but you'd be better off to code it cleaner and check something that virt_cust.inc does or sets and erroring out if that didn't happen. require

[PHP] Re: php, files, ownership....(was file manipulation)

2001-10-04 Thread Richard Lynch
You *CAN* do that with PHP as CGI wrapped with suexec... But you lose performance, and you'll have to convince the ISP to install that as a second mime-type with a different extension... They'll need to read the suexec docs at http://apache.org first and foremost. (Doing suexec incorrectly is

[PHP] Re: stupid newbie question

2001-10-04 Thread Richard Lynch
http://php.net/exec You'll need to use in the command to be executed. That command may or may not need to be wrapped up in a shell script to muck with stdin/stderr/stdout so that PHP isn't waiting for those to be freed up... Or something like that. I don't really understand it, I just know

Re: [PHP] Change linux password using php

2001-10-04 Thread Evan Nemerson
Hmmm mandrake 8 uses a different algorithm... not md5... outputs 34 characters, $ and / included (i think DES outputs alpha-numeric only. not sure though). I sent an e-mail to a mandrake mailing list, until then here's what I wrote before I actually looked at my /etc/shadow file. Should work

<    1   2