Re: [PHP] Fixing timezone issues

2002-08-13 Thread H. Wade Minter
On Tue, 13 Aug 2002, Rasmus Lerdorf wrote: > Fix your Apache startup environment so TZ is set correctly. I've got this in the apache startup script, but it's still on GMT: bash-2.05a# head /usr/local/etc/rc.d/apache.sh #!/bin/sh TZ="EST5EDT"; export TZ case "$1" in start) [ -x /usr/l

[PHP] Fixing timezone issues

2002-08-13 Thread H. Wade Minter
At some point recently, PHP/Apache running on FreeBSD decided that i'm on GMT, instead of EST5EDT. The system date is correct: bash-2.05a# date Tue Aug 13 14:39:37 EDT 2002 But phpinfo() shows me: _ENV["TZ"] GMT What's the best way to get PHP thinking I'm in eastern time again? Thanks, Wade

RE: [PHP] phpinfo ?

2001-01-26 Thread H. Wade Minter
That's incorrect, at least under PHP4. I've got the following file that does the phpinfo stuff perfectly: BEGIN FILE END FILE On Fri, 26 Jan 2001, John Guynn wrote: > Actually what you need is otherwise you're never > going to get anything on the screen. > > John Guynn > > This ema

[PHP] Splitting at word count

2001-01-25 Thread H. Wade Minter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm doing a page where the front page will show "news" stories. What I'd like is if the story is longer than X words/chars/etc, the index page will show the first X words, then a link for the full story. Does anyone have a good idea on how to split

[PHP] Postgres pconnect

2001-01-17 Thread H. Wade Minter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have a website where each new page access connects to a Postgres database to load information. Each DB connect uses a $dblink=pg_connect() to connect to the database. I'd like to avoid the overhead with opening a new connection with every page. S