Hi, Are you running the php script from the command line?
Whjat actually happens when you run it? Try echoing the return value of the exec command. Thanks Tim On 10 June 2011 17:14, Ashenafi Shifferaw <[email protected]> wrote: > Greetings, > > I recently wrote a C program as follows; > >> #include <stdio.h> >> #include <stdlib.h> >> >> void main() >> { >> system("notify-send -u normal -t 200 'You Have received a new >> message'"); >> system("cvlc /home/ashenafis/Music/BabyMessage.mp3"); >> return 0; >> } > > Compiled it and saved the executable in "/usr/sbin/play". > > When I run it from the terminal it works fine, however it does not work when > I try to run it from a PHP script using > >> <?php exec("/usr/sbin/play"); ?> > > Is there something I am missing? Please help. > > -- > Ashenafi S. > http://ashenafis.webs.com > > > > > _______________________________________________ > The Uganda Linux User Group: http://linux.or.ug > > Send messages to this mailing list by addressing e-mails to: [email protected] > Mailing list archives: http://www.mail-archive.com/[email protected]/ > Mailing list settings: http://kym.net/mailman/listinfo/lug > To unsubscribe: http://kym.net/mailman/options/lug > > The Uganda LUG mailing list is generously hosted by INFOCOM: > http://www.infocom.co.ug/ > > The above comments and data are owned by whoever posted them (including > attachments if any). The mailing list host is not responsible for them in > any way. > -- WebERP Africa Ltd +447710427049 +256752963327 +255758554413 www.weberpafrica.com _______________________________________________ The Uganda Linux User Group: http://linux.or.ug Send messages to this mailing list by addressing e-mails to: [email protected] Mailing list archives: http://www.mail-archive.com/[email protected]/ Mailing list settings: http://kym.net/mailman/listinfo/lug To unsubscribe: http://kym.net/mailman/options/lug The Uganda LUG mailing list is generously hosted by INFOCOM: http://www.infocom.co.ug/ The above comments and data are owned by whoever posted them (including attachments if any). The mailing list host is not responsible for them in any way.
