A
Anonymous
Guest
I am trying to create a slide show viewer which allows the user to
select from a list of people who are tagged in the photos and it then
displays a slide show of all pictures including any of these people.
I have created a screen in PHP which allows to select from a drop-down
list, queries the database and creates a list of photographs and writes
the list to a text file (I thought that would be the difficult bit!).
I can then run a terminal command
feh -f plist.txt -FD2 -d
that calls feh and uses the list to show a slide show.
The bit that I can't figure out is how to get PHP to trigger the slide
show.
shell_exec('feh -f plist.txt -FD2 -d');
does nothing. I also have a shell script, plist.sh which works from
command line, but
shell_exec('./plist.sh');
in PHP does nothing.
Any ideas? Do I need to use javascript or something to call it? Any
pointers much appreciated.
Mick
select from a list of people who are tagged in the photos and it then
displays a slide show of all pictures including any of these people.
I have created a screen in PHP which allows to select from a drop-down
list, queries the database and creates a list of photographs and writes
the list to a text file (I thought that would be the difficult bit!).
I can then run a terminal command
feh -f plist.txt -FD2 -d
that calls feh and uses the list to show a slide show.
The bit that I can't figure out is how to get PHP to trigger the slide
show.
shell_exec('feh -f plist.txt -FD2 -d');
does nothing. I also have a shell script, plist.sh which works from
command line, but
shell_exec('./plist.sh');
in PHP does nothing.
Any ideas? Do I need to use javascript or something to call it? Any
pointers much appreciated.
Mick