-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.
-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
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
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
4 matches
Mail list logo