Re: Using system call + wrapper?

From: "Adam Lang" <aalang(at)rutgersinsurance(dot)com>
To: <pgsql-php(at)postgresql(dot)org>
Subject: Re: Using system call + wrapper?
Date: 2001-02-26 17:37:26
Message-ID: 01a301c0a01a$c901b4e0$330a0a0a@rutgersinsurance.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

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" <dugganr(at)student(dot)cs(dot)ucc(dot)ie>
To: <pgsql-php(at)postgresql(dot)org>
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(at)student(dot)cs(dot)ucc(dot)ie richie_dug(at)yahoo(dot)com
> Homepage : http://student.cs.ucc.ie/01/dugganr/index.html

In response to

Browse pgsql-php by date

  From Date Subject
Next Message Dan Wilson 2001-02-26 17:37:50 Re: Using system call + wrapper?
Previous Message Mitch Vincent 2001-02-26 17:31:53 Re: Using system call + wrapper?