Using script to connect to DB

view story

http://serverfault.com – I am using SQL Workbench to connect to company database. The following parameters are correct as I can connect and execute SQL commands. Driver: PostgreSQL URL: jdbc:postgresql://company_intranet_url username: some_user password: some_password Drivers: Library - C:\path_to\postgresql-703.jdbc4.jar My question is how do I connect to the database using command prompt or PHP (HowTos)