Mailinglist Archive: opensuse (929 mails)

< Previous Next >
Re: [opensuse] public_html security
On Sun, 2014-03-23 at 18:47 -0300, Cristian Rodríguez wrote:
El 23/03/14 17:26, lynn escribió:
13.1
Hi
We've a php script which writes to the users public_html folders, so
wwwrun needs w. I used setfacl to grant the write. The alternative is to
stick it in the db. I'd prefer the former. Any problems with that?
Thanks



what kind of data is it and in what format is stored in the case of
using a database ?


e.g.
php:
shell_exec('sh h.sh');
$list= file_get_contents('s.txt');
echo nl2br($list);

h.sh:
#!/bin/bash
ls -l > s.txt

don't want to do:
...
$query = "INSERT INTO testing (results) VALUES('$list')";
...

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups