I'm attempting to run a fully-functional php script from the command line and I'm getting different phpinfo() results.
I have a long running page that reads an Oracle database so I'd like to run it in a scheduled batch file. When I execute the script via the command line it tells me "Call to undefined function oci_connect". Tells me the same thing when I attempt other db types; "call to undefined function odbc_connect". Both of these work properly when executed in a browser.
If I run phpinfo() via the command line I get different results that when executed via a browser.
1 - Windows version used - Windows Server 2012 R2 (64)
2 - Version WampServer - wampServer Version 3.0.4 64 bit
3 - Apache Version - 2.4.18
4 - PHP Version - php 7.0.4 AND PHP 5.6.19 for CLI (Command-Line Interface) (obviously part of the problem since I've got a check mark next to the 7.0.4 version)
5 - MySQL Version - 5.7.11
6 - What color is the WampServer icon - green
Do I have to install all my extensions into the 5.6 version as well or can I change CLI to use 7.0?
I have a long running page that reads an Oracle database so I'd like to run it in a scheduled batch file. When I execute the script via the command line it tells me "Call to undefined function oci_connect". Tells me the same thing when I attempt other db types; "call to undefined function odbc_connect". Both of these work properly when executed in a browser.
If I run phpinfo() via the command line I get different results that when executed via a browser.
1 - Windows version used - Windows Server 2012 R2 (64)
2 - Version WampServer - wampServer Version 3.0.4 64 bit
3 - Apache Version - 2.4.18
4 - PHP Version - php 7.0.4 AND PHP 5.6.19 for CLI (Command-Line Interface) (obviously part of the problem since I've got a check mark next to the 7.0.4 version)
5 - MySQL Version - 5.7.11
6 - What color is the WampServer icon - green
Do I have to install all my extensions into the 5.6 version as well or can I change CLI to use 7.0?