Skip to content

Tag: php

Execute GIT command from PHP and get error message back

When I try to execute something legitimate – it works, like returns me a list of available tags. But when I do something that should return error, like it returns me NULL, but not message fatal: could not create work tree dir ”.: No such file or directory that I would see in the console. How can I…

Can’t output Python Print in PHP

I’m really stuck on this one, but I am a python (and Raspberry Pi) newbie. All I want is to output the print output from my python script. The problem is (I believe) that a function in my python script takes half a second to execute and PHP misses the output. This is my php script: I’ve included t…

PHP Xdebug Netbeans Breakpoints

After working fine, with no config changes for months xdebug/netbeans is now useless. I can create breakpoints but whenever it has ‘stepped in’ to a further scope its impossible to step thru and simply jumps out of the inner scope to the caller. There are no exceptions generated. Using tail -f xde…

PHP exec sudo script not working despite having sudo rights

My php script: my visudo line (I tripled checked every path) If i remove the ‘sudo’ in the exec() it will execute (i put a touch aaa at the start, with sudo the file isn’t even created so the script doesn’t even begin to execute). The script has exec rights for everyone. I can’t …