Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 17002

PHP is a widely-used, general-purpose scripting language that is especially suited for web development. Use this tag when you are dealing with a PHP script, installing PHP, or configuring a PHP installation.

0
votes
Just figured it out while digging through the environment variables, I also have to set $XAUTHORITY to whatever the variable is in the normal login. XAUTHORITY=/home/myusername/.Xauthority DISPLAY=:0 …
answered Dec 29 '13 by Manishearth
0
votes
1answer
I have the following script (alert.sh) which has been setuid'd: DISPLAY=:0.0 notify-send --urgency=low -i python "The job has finished" and the following PHP file alert.php: <?php echo exec … ("/path/to/alert.sh") When I su to www-data and run php alert.php, I get an alert on my screen. All good. However, when I open alert.php in the browser, nothing happens. I suspect some environment variable needs to be set, but I'm not sure which. …
asked Dec 29 '13 by Manishearth