From: Howard S. <ho...@uk...> - 2003-01-28 15:43:46
|
Hello RefDB works perfectly on my system, and my LAMP system works fine, but I need to use refdbc from PHP. I can't use the cgi version. I can't get this to work. If I try the command /usr/local/bin/refdbc -C getref :AU:=richter from the command line, it works correctly and gives me 13 references. If I try it in a shell script, it also works. But if I try calling this command with the PHP functions 'system' 'exec' 'passthru', etc, or with a pipe, it returns an error. The log file for the refdbd daemon has this: 6:pid=3856:Tue Jan 28 11:49:17 2003:adding client on fd 6 6:pid=3856:Tue Jan 28 11:49:17 2003:server waiting n_max_fd=6 6:pid=12484:Tue Jan 28 11:49:17 2003:serving client on fd 6 with protocol version 0 4:pid=12484:Tue Jan 28 11:49:17 2003:unknown command 4:pid=12484:Tue Jan 28 11:49:17 2003:no positive ack from client 6:pid=12484:Tue Jan 28 11:49:17 2003:child finished client on fd 6 6:pid=3856:Tue Jan 28 11:49:17 2003:parent removing client on fd 6 6:pid=3856:Tue Jan 28 11:49:17 2003:server waiting n_max_fd=5 6:pid=3856:Tue Jan 28 11:49:17 2003:child exited with code 1 If I set the log level to 'debug' (-l7) in refdbc, I get this in the log file when calling from PHP: 7:pid=15100:Tue Jan 28 15:20:35 2003:getref :AU:=richter If I call the program directly (or from a shell) this is 7:pid=14990:Tue Jan 28 15:14:20 2003:getref ":AU:=richter" -u zmpg -w 121069035118125116045057 -d ZMPGlit -R /home/local/ZMPG/zmpg/Documents/PDFs -G /usr/local/share/refdb/css/refdb.css In other words, when I call refdbc from PHP, it ignores both the configuration file and most of the command line parameters. What are the special tricks for getting refdbc to work from PHP? Thanks, -- Howard -------------------------------------------------------------------- Dipl.-Phys. Howard Schultens Tel: +49 551 39-5914 Zentrum Physiologie FAX: +49 551 39-5923 Humboldtallee 23 37073 Goettingen mailto:howard at ukps.gwdg.de Germany http://www.neuro-physiol.med.uni-goettingen.de -------------------------------------------------------------------- |