note 52545 added to function.exec
| From: | llunuca at hotmail dot com | Date: | Thu, 05 May 2005 10:34:47 +0000 |
| Subject: | note 52545 added to function.exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-88959@lists.php.net to get a copy of this message | ||
Hello!
I'm using Linux RedHat 7.2 and the web server Apache. And I'm new in PHP too,
My problem is that
When I instroduce in the system console:
/usr/bin/xmms --play fichero.mp3
it opens "xmms" and play the file "fichero.mp3". And its OK.
But the problem is then when I call:
exec('/usr/bin/xmms --play fichero.mp3');
in a "php" file; it doesn't open xmms and it doesn't do anything.
I supposed that the problem could be the permissions but I change it and it doesn't work.
I read the note of Brian J.Davis but when I introduce
xhost +local: apache2@
it gives me back
non-networklocal connections being added to access control list
P.D: Sorry, but my english isn't very good.
Thanks in advance.
Lluna
----
Manual Page -- http://www.php.net/manual/en/function.exec.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52545
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52545&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52545&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52545&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52545&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52545&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52545&report=yes
Search -- http://master.php.net/manage/user-notes.php