I want to use PHP as an standalone application. PHP is installed in a AIX server and I have a DB2 database in another AIX server. When I execute scripts under Apache everything works fine, but when I try to execute them with crontab or in a shell, the connection to the database fails.
I've already added the magic line:
#!/path-to-php/ to the script
>php -q script.php call responds with an SQL error
I'm using the same routine that I use under Apache to connect to the database.