I'm having trouble with the backtick operator. I can use it for simple shell things, such as ls and pwd:
echo shell_exec( "ls -l" );
... works fine. However I'm trying to integrate with a search engine that is command-line (called swish-e), and typically I use that from the command line like so:
swish-e -f /var/www/swishit/notdev.index -w 'test'
However when I run either of these commands:
echo shell_exec( "swish-e -f /var/www/swishit/notdev.index -w 'test'" );
echo shell_exec( "swish-e" );
... nothing is displayed at all. The swish-e file lives in /usr/local/bin/swish-e and has read and execute permissions for everyone.
Any ideas?
-Antun