Received: from bush.rutgersinsurance.com (rutgersinsurance.com [38.138.71.194]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f1QHZVx09246 for ; Mon, 26 Feb 2001 12:35:32 -0500 (EST) (envelope-from aalang@rutgersinsurance.com) Received: from 6014cwpza006 (adam.rutgersinsurance.com [10.10.10.51]) by bush.rutgersinsurance.com (8.9.3/8.9.3) with SMTP id MAA12726 for ; Mon, 26 Feb 2001 12:38:33 -0500 Message-ID: <01a301c0a01a$c901b4e0$330a0a0a@rutgersinsurance.com> From: "Adam Lang" To: References: Subject: Re: Using system call + wrapper? Date: Mon, 26 Feb 2001 12:37:26 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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: 200102/35 X-Sequence-Number: 174 Any reason you don't have the images uploaded to somewhere that you don't have such security issues? Like a home directory or something? Adam Lang Systems Engineer Rutgers Casualty Insurance Company http://www.rutgersinsurance.com ----- Original Message ----- From: "Richie" To: Sent: Monday, February 26, 2001 12:01 PM Subject: [PHP] Using system call + wrapper? > Hi > > I am trying to allow people to save images from their file system to a > directory on my machine called images, for example the path that I want to > save to is /usr/local/apache/htdocs/project/images/. > > Obviously from above I am using an Apache web server, PHP and PostgreSQL. > My problem is that you need sudo access to save anything to this > directory so I get a "Permission denied..." error on the browser. I want > to save the image to the images directory and save the path to a table in > my database, however I can do neither in the current situation. > > It was suggested to me to use a wrapper that invokes a system call such as > system('sudo upload.php -p password') that will run the program in sudo > but I really don't know where to start with this?? > > Can anyone please help me? > > ========================================================= > Richie Duggan > Computer Science IV > University College Cork > Eamil : dugganr@student.cs.ucc.ie richie_dug@yahoo.com > Homepage : http://student.cs.ucc.ie/01/dugganr/index.html