Received: from dns.perridot.com ([202.187.97.3]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g0T2xml30742; Mon, 28 Jan 2002 21:59:49 -0500 (EST) (envelope-from launh@perridot.com) Received: from linux1.perridot.com (processflow.perridot.com [202.187.97.20]) by dns.perridot.com (8.11.2/8.11.2) with ESMTP id g0T2dQJ19303; Tue, 29 Jan 2002 10:39:26 +0800 Received: from launh (launh.perridot.com [10.35.1.4]) by linux1.perridot.com (8.11.2/8.11.2) with SMTP id g0T31x627162; Tue, 29 Jan 2002 11:01:59 +0800 Message-ID: <003401c1a871$516922a0$0401230a@perridot.com> From: "Lau NH" To: , Subject: Backup database through web and php Date: Tue, 29 Jan 2002 11:01:58 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0031_01C1A8B4.5EE489E0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200201/238 X-Sequence-Number: 3119 This is a multi-part message in MIME format. ------=_NextPart_000_0031_01C1A8B4.5EE489E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all, I am writing a php script to backup my postgres database through web int= erface, but my database is password required. When I do a pg_dump at the l= inux shell prompt, it will prompt for password in order to backup the datab= ase, does anyone know how to pass this password with the pg_dump command to= gether so that I can do it using php system call?=20=20 ------=_NextPart_000_0031_01C1A8B4.5EE489E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi all,
   I am writing a php script to = backup my=20 postgres database through web interface, but my database is password=20 required.  When I do a pg_dump at the linux shell prompt, it will prom= pt=20 for password in order to backup the database, does anyone know how to pass = this=20 password with the pg_dump command together so that I can do it using php sy= stem=20 call? 
 
------=_NextPart_000_0031_01C1A8B4.5EE489E0--