Re: (OT?) php, system and perl IO

From: elein <elein(at)sbcglobal(dot)net>
To: Dror Matalon <dror(at)zapatec(dot)com>, elein(at)varlena(dot)com
Cc: sfpug(at)postgresql(dot)org
Subject: Re: (OT?) php, system and perl IO
Date: 2003-01-24 23:05:43
Message-ID: 200301242307.h0ON7LHU022342@pimout3-ext.prodigy.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: sfpug


I needed to not use /tmp but rather use a directory under
apache's htdoc directory. But reviewing php.ini was pretty
helpful.

Thanks,
elein

On Friday 24 January 2003 14:23, Dror Matalon wrote:
> I would guess that php is running inside some kind of "sandbox" that
> doesn't allow writing. I would look and see if there are any flags that
> you need to set to allow it to write. Just a guess.
>
> On Fri, Jan 24, 2003 at 12:59:59PM -0800, elein wrote:
> > I've got an apache webserver using php.
> > php invokes a perl script using system().
> > Stdout is correctly brought back into the page,
> > however, the perl script is also trying to open for write
> > a file to the (server) system. The perl script also is trying
> > to create a file in /tmp and it fails with permission
> > problems. The permissions on /tmp are rwxrwxrwt.
> >
> > I hope I'm missing something obvious. Does anyone
> > have any hints?
> >
> > elein
> > --
> > -------------------------------------------------------------------------
> >--------------- elein(at)varlena(dot)com Database Consulting
> > www.varlena.com
> > I have always depended on the [QA] of strangers.
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 2: you can get off all lists at once with the unregister command
> > (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)

--
----------------------------------------------------------------------------------------
elein(at)varlena(dot)com Database Consulting www.varlena.com
I have always depended on the [QA] of strangers.

In response to

Browse sfpug by date

  From Date Subject
Next Message Josh Berkus 2003-01-29 17:48:44 Need topics for next meeting
Previous Message Matthew Lanier 2003-01-24 22:36:49 .org TLD Now Runs on PostgreSQL (fwd)