I have a php script that used mysqli and mssql (as in php version 5.6)
When I run the script from a browser it runs fine (WebStation).
But if I run it from either a terminal command line or run it as a user-defined scheduled script (in Task Scheduler) it returns mysqli and mssql not found errors.
I have enabled both of these extensions within the WebStation settings.
I already tried command line running php56 from these directories, but still no luck:
/bin/php
/var/packages/PHP5.6/target/usr/local/bin/php56
I need to run the script periodically using Task Scheduler.
Clearly the script can work, but by running it via the command line must load php in a different way.
How does WebStation run php? and can I reproduce that via command line?
How can I find out the path used to run php from within a browser? If I knew that I could probably replicate it in the command line?
Note - already seen this old post:
When I run the script from a browser it runs fine (WebStation).
But if I run it from either a terminal command line or run it as a user-defined scheduled script (in Task Scheduler) it returns mysqli and mssql not found errors.
I have enabled both of these extensions within the WebStation settings.
I already tried command line running php56 from these directories, but still no luck:
/bin/php
/var/packages/PHP5.6/target/usr/local/bin/php56
I need to run the script periodically using Task Scheduler.
Clearly the script can work, but by running it via the command line must load php in a different way.
How does WebStation run php? and can I reproduce that via command line?
How can I find out the path used to run php from within a browser? If I knew that I could probably replicate it in the command line?
Note - already seen this old post:
Synology Community
Hi! Come and join us at Synology Community. A place to answer all your Synology questions. Ask a question or start a discussion now.
community.synology.com