From: Sandro D. <san...@ti...> - 2002-10-09 10:27:36
|
> Have you tested to be sure it runs correctly from the command line? Sure I did it. > And have you checked the PHP web-lib routines that you're using to make > sure they are correct? It appears to be a 'quick' port...I don't know > that I would expect it to work perfectly from the get go. Not at all, my trial script -php.cgi-, is as simple as: #!/usr/bin/php4 -q <?php echo "Content-type: text/html\n\n" ; echo "Ciao\n"; ?> note that the following shell script -sh.cgi-, just works: #!/bin/sh echo Content-type: text/html echo echo Ciao The php scripts works from command line, but from inside webmin returns "No input file specified" If you take off the "-q" switch in '#!/usr/bin/php4" php4 will issue a header (X-Powered-By: PHP/4.1.2 \nContent-type: text/html), the script executes but the line with '#!...' staff is echoed to the browser... I think this has really to do with something in the way miniserv.pl deals with cgi scripts. Since I saw quite a lot of other people asking these questions on php list, it would be really nice to get an answer from people that understand how miniserv.pl works. Thanks in advance. And of course thanks to Jamie for Webmin that makes so easy to let people administer their boxes... sandro *:-) -- Sandro Dentella *:-) e-mail: san...@ti... http://www.tksql.org TkSQL Home page - My GPL work |