I'm trying to run a PHP script on the Linux command line with:
php -f ClienteController.php
and I get this error in the command line:
PHP Fatal Error: Class 'Controller' not found in (__directorio__)
The ClientController code:
<?php
class ClienteController extends Controller
{
(contenido)
}
The strange thing is that I have this project in the localhost and if it works, but I also have it duplicated in a Linux server and this is where I get the error and I do not know why. I tried to do an include and a require of the Controller class and it still does not work. I do not know if it can be for some configuration that would have to do with the configuration files that come in Linux, since it also throws this error next to the other:
PHP Warning: PHP Startup: Unable to load dynamic library 'usr/lib64/php/modules/mysql.so' - 'usr/lib64/php/modules/mysql.so': cannot open shared object file: No such file or directory in Unknown on line 0
-RUTAS:
-ClientController: \var\www\html\ClubVinos\clubdevinos\protected\modules\cliente\controllers\
-Controller:
\var\www\html\ClubVinos\clubdevinos\protected\components
Thank you very much in advance !!