Luke Maurits wrote:
I'm fairly new to web programming, so to get used to things I have written a small .php page which queries a postgresql database and displays the results, formatted as HTML. If I run this program from the command line, i.e. execute "php filename.php", then everything appears to run smoothly - the expected HTML is printed to the standard output and it includes exactly those results from the database that I expect.
What happends if you try "/usr/pkg/libexec/cgi-bin/php filename.php"? (Just to make sure the web server is using the correct binary.)
Roland