X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 80768D9B19 for ; Wed, 28 Sep 2005 19:00:23 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 59208-09 for ; Wed, 28 Sep 2005 22:00:16 +0000 (GMT) Received: from relay.mixmail.com (relay02.mixmail.com [62.151.8.31]) by svr1.postgresql.org (Postfix) with ESMTP id 27651D9B15 for ; Wed, 28 Sep 2005 19:00:17 -0300 (ADT) Received: from [172.30.8.79] (helo=web09) by relay.mixmail.com with smtp id 1EKjyO-00046B-00 for pgsql-php@postgresql.org; Thu, 29 Sep 2005 00:00:20 +0200 Date: Wed, 28 Sep 2005 17:00:20 -0500 From: "enzo venegas palacios" Reply-To: enzovenegas@mixmail.com To: "pgsql-php@postgresql.org" Subject: exec format Xmailer: Mixmail Server 3.0 X-Priority: 3 MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: quoted-printable Message-Id: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=2.21 required=5 tests=[AWL=0.181, DNS_FROM_RFC_ABUSE=0.374, PRIORITY_NO_NAME=1.185, TO_ADDRESS_EQ_REAL=0.47] X-Spam-Level: ** X-Archive-Number: 200509/27 X-Sequence-Number: 3267 hi, I am trying to execute a line of commands of DOS and need to put "" inside the sequence, for the format of the instruction exec it does not leave me, someone can solve like this Ej: Exec (" C:\Program Files\PostgreSQL\8.0.0-rc2\bin \> pg_dump -i - or - or postgres -Fc-b-v-f c:\path\res " .$name. ".backup name_db "); Here the variable is supposed q happens well, but the correct instruction is: Exec (" C:\Program Files\PostgreSQL\8.0.0-rc2\bin \> pg_dump-i - or - or postsgres -Fc-b-v-f "c:\path\res" .$name. ".backup" name_db"); And here it throws the mistake to me, it q am trying to do it is to execute pg_dump from php, any idea in the matter, thank you enzo --------------------------------------------------------- Juega y llévate una PS2 two: http://juegos.ya.com/consolas_y_pc/2005/09/concurso-ps2.html Ya.com ADSL 2MB + Llamadas 24 horas: desde 26,95 €/mes + IVA. Navega y habla de forma ilimitada. Sin compromiso de permanencia. http://acceso.ya.com/ADSLllamadas/2mb