> On 7. Jul 2020, at 00:37, Anthony Kozar <mai...@an...> wrote:
>
> would probably tell you what the working directory of your script is when run under the web server. (There's probably a better way to do it, but I didn't see any values specifically about it in the variables $_SERVER or $_ENV in some old tests I ran).
I like the idea of having the binary in the path (php e.g. uses compress-decompress binaries, or image utilities). Here user rights may come into play as well (apache configuration) - and I think there are different degrees of hardenedness of the php-configuration that determine how and from where binaries can be run. Security policies are the main issue here. I think the apache log (/var/log/apache/access or error) might tell you what went on.
Best
.r. |