hopefully someone knows the answer to this,
I have a script I want to run from the commandline that connects to a postgres db.
If i run it from a browser it works fine
if i run it via prompt> php scriptname.php
I get a undefined function error for pg_connect()
note: I need to run it as a cron task - is there a simple resolve to my dilemma?