pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steve Wolfe <steve@iboats.com>
To: pgsql-general@postgresql.org
Subject: Re: [SQL] US Date Style
Date: Thu, 27 Apr 2000 13:56:12 -0600
Message-ID: <002201bfb082$a385b870$85755ad1@iboats.com> (raw)
References: <Pine.WNT.3.96.1000427144826.161A-100000@sig.rema.ufba.br>

> I'm having this problem with date fields. I'm using the
Postgresql7.0beta4
> and programming in PHP3. When I set the environment variable PGDATESTYLE
> to "NonEuropean,SQL" it works, but only if I'm in the Pgsql environment.
> When I access through the PHP3 it doesn't work.
>
> Does anybody have any suggestion that could help me?

  When you access is via the PHP interface (which, I assume, is running as
a CGI program), then you are not running as pgsql, and so any settings
you've put into pgsql's startup scripts will not take effect.  Determine
which user is actually executing the code when accessed normally (hopefully
you're using some mechanism to execute scripts as the owner, in which case
it will be the owner of the file.  Otherwise it will be the user that the
web server runs as.)  Then, make the appropriate settings in the
appropriate scripts for that user.

steve




view thread (8+ messages)

Message-ID: <002201bfb082$a385b870$85755ad1@iboats.com>
Permalink:  ../002201bfb082$a385b870$85755ad1@iboats.com/
Also on:    postgresql.org/message-id/002201bfb082$a385b870$85755ad1@iboats.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: steve@iboats.com, pgsql-general@postgresql.org
  Subject: Re: [SQL] US Date Style
  In-Reply-To: <002201bfb082$a385b870$85755ad1@iboats.com>
  References: <Pine.WNT.3.96.1000427144826.161A-100000@sig.rema.ufba.br> <002201bfb082$a385b870$85755ad1@iboats.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox