You are here: Re: open_basedir does nothing? « All PHP « IT news, forums, messages
Re: open_basedir does nothing?

Posted by Malachi on 03/22/06 07:32

Ken Williams wrote:
> Is this right? I've set open_basedir to /usr/apache/httpd/website or
> whatever, something thats not /usr/bin yet the following still works:
>
> $output = `/usr/bin/cat /proc/loadavg`;
>
> Is this correct? If open_basedir is in effect is /usr/bin/cat still
> support to be executable in this way? It does work (/usr/bin/cat is
> restricted) for fopen.
>
> Thanks.

I'm not sure I understand you entirely, but putting stuff in ``'s is
pretty much the same as typing that into a 'nix shell (assuming it's on
a 'nix platform, dunno what happens otherwise...) and returning the
stout (and as you have it there, sticking it into $output). Since you
describe the absolute paths to all executables and files in the bit that
gets passed to a shell, $output should not change no matter what
open_basedir is.

I hope this helps...

-mala

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация