pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Apache, PHP and Postgresql



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



Home | Main Index | Thread Index | Old Index