I'm trying to run a PHP script from the command line that utilizes PDO and I get this error message:
This file works fine if called via HTTP, but I get this error when running the file with PHP in the command line like this:
Is this a limitation of the command line version of PHP that Dathorn has set up, or do I need to tell my script where PDO is? If this is a limitation, are there any workarounds?
Thanks,
James
Code:
Fatal error: Class 'PDO' not found in /path/to/my/file.php on line 365
Code:
php cron.php
Thanks,
James
Comment