From owner-freebsd-questions Mon Oct 14 7:53:57 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EBA5637B401 for ; Mon, 14 Oct 2002 07:53:55 -0700 (PDT) Received: from mail.liwing.de (mail.liwing.de [213.70.188.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 18F2743EAA for ; Mon, 14 Oct 2002 07:53:55 -0700 (PDT) (envelope-from rehsack@liwing.de) Received: (qmail 19815 invoked from network); 14 Oct 2002 14:53:54 -0000 Received: from stingray.liwing.de (HELO liwing.de) ([213.70.188.164]) (envelope-sender ) by mail.liwing.de (qmail-ldap-1.03) with SMTP for ; 14 Oct 2002 14:53:54 -0000 Message-ID: <3DAADA8B.55767D3A@liwing.de> Date: Mon, 14 Oct 2002 16:54:03 +0200 From: Jens Rehsack Organization: LiWing IT-Services X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Patrick Holahan Cc: questions@freebsd.org Subject: Re: Running ipfw from a webpage/using php. References: <010101c2738e$ffcd2560$ec9e1ec4@staff.uunet.co.za> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Patrick Holahan wrote: > > Hi there.. > > Hopefully someone here is able to help me.. > > I need to run a root command (ipfw) from apache through php. (Yes, this is > not very secure and I'm aware of this and if anyone has any better > suggestions, please feel free to make them.) > > Would anyone know how to do this? is that the function you search: string exec ( string command [, array output [, int return_var]]) > > Thanks in advance > -ph > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- L i W W W i Jens Rehsack L W W W L i W W W W i nnn gggg LiWing IT-Services L i W W W W i n n g g LLLL i W W i n n g g Friesenstraße 2 gggg 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91 ggg e-Mail: Fax: +49 - 3 45 - 5 17 05 92 http://www.liwing.de/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message