[PHP] Scaling select lists

2004-11-02 Thread Chris Gregors
appreciated to overcome massive select lists ? _ Chris Gregors We have the courage to innovate Potestatem Obscuri Lateris Nescis smime.p7s Description: S/MIME cryptographic signature

RE: [PHP] Good xml to array class?

2004-09-23 Thread Chris Gregors
I've had good success with this one: http://www.devdump.com/phpxml.php -Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: Thursday, September 23, 2004 12:04 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Good xml to array class? * Thus wrote Brent Clements: I've done

RE: [PHP] Virtual Host problem

2004-09-23 Thread Chris Gregors
scan your apache httpd.conf file for the following: User apache Group apache Note the userid and groupid (I use apache). Verify that the index.php files are readable by the apache User and Group. Correct the file ownership and/or change the User/Group that apache runs as. -Original

RE: [PHP] Cannot write data in session file

2004-09-22 Thread Chris Gregors
1. logon to the linux image. 2. determine the userid that the webserver runs as (for apache, look in httpd.conf) 3. su to that user 4. cd /tmp. 5. touch temp_file. If the touch works, then contact your sysadm If the touch doesn't work, contact your sysadm to grant write access to /tmp for the

RE: [PHP] Strange errors when PHP script called from CRON

2004-09-22 Thread Chris Gregors
Typically problems with scripts failing to run from cron can be tracked back to environment variables. When you run it from the shell, you have the users env variables set. When it runs from cron, it (typically) has a slightly different environment. A simple way to test it is to get your shell

RE: [PHP] inserting timestamp into mysql field

2004-09-21 Thread Chris Gregors
If you are working with a timestamp in some other format, this works well: $ts = date(Y-m-d H:i:s,strtotime($sring_with_timestamp)); If you want to create a timestamp at the execution time, this works well: $ts = date(Y-m-d H:i:s); Both will generate mysql compatiable date/time

RE: [PHP] mysql_connect does not connect

2004-09-17 Thread Chris Gregors
This whole thread has degraded to the point of: YHBT. YHL. HAND. and I'm not helping it. -Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: Friday, September 17, 2004 2:33 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] mysql_connect does not connect * Thus

RE: [PHP] mysql_connect does not connect

2004-09-17 Thread Chris Gregors
?php if ( date(l) == Friday) { echo get_defn(STFA); } else { echo Not today eh!\n; } function get_defn($string) { if ( $string == STFA) $i = mt_rand(0,3); switch($i) { case 0: return search the fucking archives\n; case 1: