I posted this on the Database forum but perhaps this is the better place to ask.
I have shell access to a system as a regular user not admin/root.
I can write a php script to interrogate a MySQL database that works when it is called via Apache - ie from a browser.
If I issue the same script on the command line it chokes when trying to connect I get:
Fatal error: Call to undefined function: mysql_connect() in …
I want to cron the script, hence my interest in running it in command line plus I don’t really want to make it available via the web.
mysql ver 11.18 Distrib 3.23.58
RH Linux kernel 2.4.7 (pretty ancient I know).